DateFormatter::getSampleDateFormats

public DateFormatter::getSampleDateFormats($langcode = NULL, $timestamp = NULL, $timezone = NULL) Provides values for all date formatting characters for a given timestamp. Parameters string|null $langcode: (optional) Language code of the date format, if different from the site default language. int|null $timestamp: (optional) The Unix timestamp to format, defaults to current time. string|null $timezone: (optional) The timezone to use, if different from the site's default timezone. Return value

EntityInterface::getConfigDependencyName

public EntityInterface::getConfigDependencyName() Gets the configuration dependency name. Configuration entities can depend on content and configuration entities. They store an array of content and config dependency names in their "dependencies" key. Return value string The configuration dependency name. See also \Drupal\Core\Config\Entity\ConfigDependencyManager File core/lib/Drupal/Core/Entity/EntityInterface.php, line 492 Class EntityInterface Defines a common interface for all entity

EntityManager::onEntityTypeDelete

public EntityManager::onEntityTypeDelete(EntityTypeInterface $entity_type) Overrides EntityTypeListenerInterface::onEntityTypeDelete Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/lib/Drupal/Core/Entity/EntityManager.php, line 401 Class EntityManager Provides a wrapper around many other services relating to entities. Namespace Drupal\Core\Entity Code public function onEntityTypeDelete(EntityTypeInterface $entity_type) { $this->container->get('enti

LanguageConfiguration

Provides language element configuration. Plugin annotation @FormElement("language_configuration") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\Core\Render\Element\FormElement implements FormElementInterfaceclass \Drupal\language\Element\Lang

BlockContent::getRevisionCreationTime

public BlockContent::getRevisionCreationTime() Gets the entity revision creation timestamp. Return value int The UNIX timestamp of when this revision was created. Overrides RevisionLogInterface::getRevisionCreationTime File core/modules/block_content/src/Entity/BlockContent.php, line 239 Class BlockContent Defines the custom block entity class. Namespace Drupal\block_content\Entity Code public function getRevisionCreationTime() { return $this->get('revision_created')->value; }

ModuleHandler::$root

The app root. Type: string File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 85 Class ModuleHandler Class that manages modules in a Drupal installation. Namespace Drupal\Core\Extension Code protected $root;

YamlPecl

Provides default serialization for YAML using the PECL extension. Hierarchy class \Drupal\Component\Serialization\YamlPecl implements SerializationInterface File core/lib/Drupal/Component/Serialization/YamlPecl.php, line 10 Namespace Drupal\Component\Serialization Members Name Modifiers Type Description YamlPecl::applyBooleanCallbacks public static function Applies callbacks after parsing to ignore 1.1 style booleans. YamlPecl::decode public static function Decod

UnmetDependenciesException

An exception thrown if configuration has unmet dependencies. Hierarchy class \Drupal\Core\Config\ConfigException extends \RuntimeExceptionclass \Drupal\Core\Config\UnmetDependenciesException File core/lib/Drupal/Core/Config/UnmetDependenciesException.php, line 11 Namespace Drupal\Core\Config Members Name Modifiers Type Description UnmetDependenciesException::$configObjects protected property A list of configuration objects that have unmet dependencies. UnmetDependenci

BookBreadcrumbBuilder::build

public BookBreadcrumbBuilder::build(RouteMatchInterface $route_match) Builds the breadcrumb. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value \Drupal\Core\Breadcrumb\Breadcrumb A breadcrumb. Overrides BreadcrumbBuilderInterface::build File core/modules/book/src/BookBreadcrumbBuilder.php, line 58 Class BookBreadcrumbBuilder Provides a breadcrumb builder for nodes in a book. Namespace Drupal\book Code public function build(RouteMat

ViewsAccess

Defines a Plugin annotation object for views access plugins. Hierarchy class \Drupal\Component\Annotation\Plugin implements AnnotationInterfaceclass \Drupal\views\Annotation\ViewsPluginAnnotationBase implements AnnotationInterfaceclass \Drupal\views\Annotation\ViewsAccess See also \Drupal\views\Plugin\views\access\AccessPluginBase Related topics Annotations Annotations for class discovery and metadata description. Views access plugins Plugins to handle access checking for views. File co