Defines the MenuActiveTrailsCacheContext service.
This class is container-aware to avoid initializing the 'menu.active_trails' service (and its dependencies) when it is not necessary.
Hierarchy
- class \Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext implements CalculatedCacheContextInterface, ContainerAwareInterface uses ContainerAwareTrait
File
- core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php, line 15
Namespace
Drupal\Core\Cache\Context
Members
| Name | Modifiers | Type | Description |
|---|---|---|---|
| ContainerAwareTrait::$container | protected | property | |
| ContainerAwareTrait::setContainer | public | function | Sets the container. Overrides ContainerAwareInterface::setContainer |
| MenuActiveTrailsCacheContext::getCacheableMetadata | public | function | Gets the cacheability metadata for the context based on the parameter value. Overrides CalculatedCacheContextInterface::getCacheableMetadata |
| MenuActiveTrailsCacheContext::getContext | public | function | Returns the string representation of the cache context. Overrides CalculatedCacheContextInterface::getContext |
| MenuActiveTrailsCacheContext::getLabel | public static | function | Returns the label of the cache context. Overrides CalculatedCacheContextInterface::getLabel |
Please login to continue.