ContextProvidersPass::process

public ContextProvidersPass::process(ContainerBuilder $container) Passes the service IDs of all context providers to the context repository. Overrides CompilerPassInterface::process File core/lib/Drupal/Core/DependencyInjection/Compiler/ContextProvidersPass.php, line 18 Class ContextProvidersPass Adds the context provider service IDs to the context manager. Namespace Drupal\Core\DependencyInjection\Compiler Code public function process(ContainerBuilder $container) { $context_provide

ContextProvidersPass

Adds the context provider service IDs to the context manager. Hierarchy class \Drupal\Core\DependencyInjection\Compiler\ContextProvidersPass implements CompilerPassInterface File core/lib/Drupal/Core/DependencyInjection/Compiler/ContextProvidersPass.php, line 11 Namespace Drupal\Core\DependencyInjection\Compiler Members Name Modifiers Type Description ContextProvidersPass::process public function Passes the service IDs of all context providers to the context repository.

ContextDefinition::__construct

public ContextDefinition::__construct(array $values) Constructs a new context definition object. Parameters array $values: An associative array with the following keys: value: The required data type. label: (optional) The UI label of this context definition. required: (optional) Whether the context definition is required. multiple: (optional) Whether the context definition is multivalue. description: (optional) The UI description of this context definition. default_value: (optional) The

ContextDefinition::get

public ContextDefinition::get() Returns the value of an annotation. Return value \Drupal\Core\Plugin\Context\ContextDefinitionInterface Overrides Plugin::get File core/lib/Drupal/Core/Annotation/ContextDefinition.php, line 130 Class ContextDefinition Defines a context definition annotation object. Namespace Drupal\Core\Annotation Code public function get() { return $this->definition; }

ContextDefinition::$definition

The ContextDefinitionInterface object. Type: \Drupal\Core\Plugin\Context\ContextDefinitionInterface Overrides Plugin::$definition File core/lib/Drupal/Core/Annotation/ContextDefinition.php, line 81 Class ContextDefinition Defines a context definition annotation object. Namespace Drupal\Core\Annotation Code protected $definition;

ContextDefinition

Defines a context definition annotation object. Some plugins require various data contexts in order to function. This class supports that need by allowing the contexts to be easily defined within an annotation and return a ContextDefinitionInterface implementing class. Hierarchy class \Drupal\Component\Annotation\Plugin implements AnnotationInterfaceclass \Drupal\Core\Annotation\ContextDefinition Related topics Annotation for context definition Describes how to use ContextDefinition annotat

ContextCacheKeys::__construct

public ContextCacheKeys::__construct(array $keys) Constructs a ContextCacheKeys object. Parameters string[] $keys: The cache context keys. File core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php, line 25 Class ContextCacheKeys A value object to store generated cache keys with its cacheability metadata. Namespace Drupal\Core\Cache\Context Code public function __construct(array $keys) { $this->keys = $keys; }

ContextCacheKeys::getKeys

public ContextCacheKeys::getKeys() Gets the generated cache keys. Return value string[] The cache keys. File core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php, line 35 Class ContextCacheKeys A value object to store generated cache keys with its cacheability metadata. Namespace Drupal\Core\Cache\Context Code public function getKeys() { return $this->keys; }

ContextCacheKeys::$keys

The generated cache keys. Type: string[] File core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php, line 17 Class ContextCacheKeys A value object to store generated cache keys with its cacheability metadata. Namespace Drupal\Core\Cache\Context Code protected $keys;

ContextCacheKeys

A value object to store generated cache keys with its cacheability metadata. Hierarchy class \Drupal\Core\Cache\CacheableMetadata implements RefinableCacheableDependencyInterface uses RefinableCacheableDependencyTraitclass \Drupal\Core\Cache\Context\ContextCacheKeys File core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php, line 10 Namespace Drupal\Core\Cache\Context Members Name Modifiers Type Description CacheableMetadata::applyTo public function Applies the values