RefinableCacheableDependencyTrait::addCacheContexts

public RefinableCacheableDependencyTrait::addCacheContexts(array $cache_contexts) Adds cache contexts. Parameters string[] $cache_contexts: The cache contexts to be added. Return value $this Overrides RefinableCacheableDependencyInterface::addCacheContexts File core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php, line 71 Class RefinableCacheableDependencyTrait Trait for \Drupal\Core\Cache\RefinableCacheableDependencyInterface. Namespace Drupal\Core\Cache Code public func

ContextualLinkManager::$accessManager

The access manager. Type: \Drupal\Core\Access\AccessManagerInterface File core/lib/Drupal/Core/Menu/ContextualLinkManager.php, line 59 Class ContextualLinkManager Defines a contextual link plugin manager to deal with contextual links. Namespace Drupal\Core\Menu Code protected $accessManager;

QueryBase::getClass

public static QueryBase::getClass(array $namespaces, $short_class_name) Finds a class in a list of namespaces. Parameters array $namespaces: A list of namespaces. string $short_class_name: A class name without namespace. Return value string The fully qualified name of the class. File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 477 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public static function getClass(array $namespaces, $short_cl

DateTimePlus::diff

public DateTimePlus::diff($datetime2, $absolute = FALSE) Returns the difference between two DateTimePlus objects. Parameters \Drupal\Component\Datetime\DateTimePlus|\DateTime $datetime2: The date to compare to. bool $absolute: Should the interval be forced to be positive? Return value \DateInterval A DateInterval object representing the difference between the two dates. Throws \BadMethodCallException If the input isn't a DateTime or DateTimePlus object. File core/lib/Drupal/Component/Datetim

BlockViewBuilder::lazyBuilder

public static BlockViewBuilder::lazyBuilder($entity_id, $view_mode) #lazy_builder callback; builds a #pre_render-able block. Parameters $entity_id: A block config entity ID. $view_mode: The view mode the block is being viewed in. Return value array A render array with a #pre_render callback to render the block. File core/modules/block/src/BlockViewBuilder.php, line 189 Class BlockViewBuilder Provides a Block view builder. Namespace Drupal\block Code public static function lazyBuilder

MetadataBubblingUrlGenerator::bubble

protected MetadataBubblingUrlGenerator::bubble(GeneratedUrl $generated_url, array $options = []) Bubbles the bubbleable metadata to the current render context. Parameters \Drupal\Core\GeneratedUrl $generated_url: The generated URL whose bubbleable metadata to bubble. array $options: (optional) The URL options. Defaults to none. File core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php, line 79 Class MetadataBubblingUrlGenerator Decorator for the URL generator, which bubbles bubble

RestResourceConfig::__construct

public RestResourceConfig::__construct(array $values, $entity_type) Constructs an Entity object. Parameters array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified. string $entity_type: The type of the entity to create. Overrides ConfigEntityBase::__construct File core/modules/rest/src/Entity/RestResourceConfig.php, line 73 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namesp

AliasStorage::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Path/AliasStorage.php, line 38 Class AliasStorage Provides a class for CRUD operations on path aliases. Namespace Drupal\Core\Path Code protected $moduleHandler;

ConfigEntityType::getRevisionDataTable

public ConfigEntityType::getRevisionDataTable() Gets the name of the entity's revision data table. @todo Used by SqlContentEntityStorage only. Return value string|null The name of the entity type's revision data table, or NULL if none exists. Overrides EntityType::getRevisionDataTable File core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php, line 102 Class ConfigEntityType Provides an implementation of a configuration entity type and its metadata. Namespace Drupal\Core\Config\Entit

InvalidDataTypeException

Exception thrown when a data type is invalid. Hierarchy class \Drupal\Component\Serialization\Exception\InvalidDataTypeException extends \InvalidArgumentException File core/lib/Drupal/Component/Serialization/Exception/InvalidDataTypeException.php, line 8 Namespace Drupal\Component\Serialization\Exception Members