DateFormatter::dateFormat

protected DateFormatter::dateFormat($format, $langcode) Loads the given format pattern for the given langcode. Parameters string $format: The machine name of the date format. string $langcode: The langcode of the language to use. Return value string|null The pattern for the date format in the given language for non-custom formats, NULL otherwise. File core/lib/Drupal/Core/Datetime/DateFormatter.php, line 323 Class DateFormatter Provides a service to handle various date related functional

DateFormatter::country

protected DateFormatter::country() Returns the default country from config. Return value string The config setting for country.default. File core/lib/Drupal/Core/Datetime/DateFormatter.php, line 339 Class DateFormatter Provides a service to handle various date related functionality. Namespace Drupal\Core\Datetime Code protected function country() { if ($this->country === NULL) { $this->country = \Drupal::config('system.date')->get('country.default'); } return $this-

DateFormatter::$units

Contains the different date interval units. This array is keyed by strings representing the unit (e.g. '1 year|@count years') and with the amount of values of the unit in seconds. Type: array File core/lib/Drupal/Core/Datetime/DateFormatter.php, line 68 Class DateFormatter Provides a service to handle various date related functionality. Namespace Drupal\Core\Datetime Code protected $units = array( '1 year|@count years' => 31536000, '1 month|@count months' => 2592000, '1 wee

DateFormatter::$timezones

The list of loaded timezones. Type: array File core/lib/Drupal/Core/Datetime/DateFormatter.php, line 26 Class DateFormatter Provides a service to handle various date related functionality. Namespace Drupal\Core\Datetime Code protected $timezones;

DateFormatter::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Datetime/DateFormatter.php, line 54 Class DateFormatter Provides a service to handle various date related functionality. Namespace Drupal\Core\Datetime Code protected $requestStack;

DateFormatter::$languageManager

Language manager for retrieving the default langcode when none is specified. Type: \Drupal\Core\Language\LanguageManagerInterface File core/lib/Drupal/Core/Datetime/DateFormatter.php, line 40 Class DateFormatter Provides a service to handle various date related functionality. Namespace Drupal\Core\Datetime Code protected $languageManager;

DateFormatter::$dateFormatStorage

The date format storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/lib/Drupal/Core/Datetime/DateFormatter.php, line 33 Class DateFormatter Provides a service to handle various date related functionality. Namespace Drupal\Core\Datetime Code protected $dateFormatStorage;

DateFormatter::$dateFormats

File core/lib/Drupal/Core/Datetime/DateFormatter.php, line 57 Class DateFormatter Provides a service to handle various date related functionality. Namespace Drupal\Core\Datetime Code protected $dateFormats = array();

DateFormatter::$country

File core/lib/Drupal/Core/Datetime/DateFormatter.php, line 56 Class DateFormatter Provides a service to handle various date related functionality. Namespace Drupal\Core\Datetime Code protected $country = NULL;

DateFormatter::$configFactory

The configuration factory. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/lib/Drupal/Core/Datetime/DateFormatter.php, line 47 Class DateFormatter Provides a service to handle various date related functionality. Namespace Drupal\Core\Datetime Code protected $configFactory;