DateFormatAccessControlHandler

Defines the access control handler for the date format entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\system\DateFormatAccessControlHandler See also \Drupal\system\Entity\DateFormat File core/modules/system/src/DateFormatAccessControlHandler.php, line 15 Namespace Drupal\system Members Name Mo

DateFormat::sort

public static DateFormat::sort(ConfigEntityInterface $a, ConfigEntityInterface $b) Helper callback for uasort() to sort configuration entities by weight and label. Overrides ConfigEntityBase::sort File core/lib/Drupal/Core/Datetime/Entity/DateFormat.php, line 87 Class DateFormat Defines the Date Format configuration entity class. Namespace Drupal\Core\Datetime\Entity Code public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b) { if ($a->isLocked() == $b->

DateFormat::setPattern

public DateFormat::setPattern($pattern) Sets the date pattern for this format. Parameters string $pattern: The date pattern to use for this format. Return value $this Overrides DateFormatInterface::setPattern File core/lib/Drupal/Core/Datetime/Entity/DateFormat.php, line 72 Class DateFormat Defines the Date Format configuration entity class. Namespace Drupal\Core\Datetime\Entity Code public function setPattern($pattern) { $this->pattern = $pattern; return $this; }

DateFormat::isLocked

public DateFormat::isLocked() Determines if this date format is locked. Return value bool TRUE if the date format is locked, FALSE otherwise. Overrides DateFormatInterface::isLocked File core/lib/Drupal/Core/Datetime/Entity/DateFormat.php, line 80 Class DateFormat Defines the Date Format configuration entity class. Namespace Drupal\Core\Datetime\Entity Code public function isLocked() { return (bool) $this->locked; }

DateFormat::getTranslationElement

public DateFormat::getTranslationElement(LanguageInterface $translation_language, $source_config, $translation_config) Returns the translation form element for a given configuration definition. For complex data structures (such as mappings) that are translatable wholesale but contain non-translatable properties, the form element is responsible for checking access to the source value of those properties. In case of formatted text, for example, access to the source text format must be checked. If

DateFormat::getPattern

public DateFormat::getPattern() Gets the date pattern string for this format. Return value string The pattern string as expected by date(). Overrides DateFormatInterface::getPattern File core/lib/Drupal/Core/Datetime/Entity/DateFormat.php, line 65 Class DateFormat Defines the Date Format configuration entity class. Namespace Drupal\Core\Datetime\Entity Code public function getPattern() { return $this->pattern; }

DateFormat::getCacheTagsToInvalidate

public DateFormat::getCacheTagsToInvalidate() Returns the cache tags that should be used to invalidate caches. This will not return additional cache tags added through addCacheTags(). Return value string[] Set of cache tags. Overrides ConfigEntityBase::getCacheTagsToInvalidate See also \Drupal\Core\Cache\RefinableCacheableDependencyInterface::addCacheTags() \Drupal\Core\Cache\CacheableDependencyInterface::getCacheTags() File core/lib/Drupal/Core/Datetime/Entity/DateFormat.php, line 99 Clas

DateFormat::$pattern

The date format pattern. Type: array File core/lib/Drupal/Core/Datetime/Entity/DateFormat.php, line 53 Class DateFormat Defines the Date Format configuration entity class. Namespace Drupal\Core\Datetime\Entity Code protected $pattern;

DateFormat::$locked

The locked status of this date format. Type: bool File core/lib/Drupal/Core/Datetime/Entity/DateFormat.php, line 60 Class DateFormat Defines the Date Format configuration entity class. Namespace Drupal\Core\Datetime\Entity Code protected $locked = FALSE;

DateFormat::$label

The human-readable name of the date format entity. Type: string File core/lib/Drupal/Core/Datetime/Entity/DateFormat.php, line 46 Class DateFormat Defines the Date Format configuration entity class. Namespace Drupal\Core\Datetime\Entity Code protected $label;