Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. IntlCaster.php

function IntlCaster::castIntlDateFormatter

File

vendor/symfony/var-dumper/Caster/IntlCaster.php, line 145

Class

IntlCaster
@author Nicolas Grekas <p@tchwork.com> @author Jan Schädlich <jan.schaedlich@sensiolabs.de>

Namespace

Symfony\Component\VarDumper\Caster

Code

public static function castIntlDateFormatter(\IntlDateFormatter $c, array $a, Stub $stub, bool $isNested, int $filter = 0) : array {
    $a += [
        Caster::PREFIX_VIRTUAL . 'locale' => $c->getLocale(),
        Caster::PREFIX_VIRTUAL . 'pattern' => $c->getPattern(),
        Caster::PREFIX_VIRTUAL . 'calendar' => $c->getCalendar(),
        Caster::PREFIX_VIRTUAL . 'time_zone_id' => $c->getTimeZoneId(),
        Caster::PREFIX_VIRTUAL . 'time_type' => $c->getTimeType(),
        Caster::PREFIX_VIRTUAL . 'date_type' => $c->getDateType(),
        Caster::PREFIX_VIRTUAL . 'calendar_object' => $filter & Caster::EXCLUDE_VERBOSE ? new CutStub($c->getCalendarObject()) : $c->getCalendarObject(),
        Caster::PREFIX_VIRTUAL . 'time_zone' => $filter & Caster::EXCLUDE_VERBOSE ? new CutStub($c->getTimeZone()) : $c->getTimeZone(),
    ];
    return self::castError($c, $a);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal