class MenuActiveTrailsCacheContext
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 \Symfony\Component\DependencyInjection\ContainerAware implements \Symfony\Component\DependencyInjection\ContainerAwareInterface
- class \Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext implements CalculatedCacheContextInterface
File
- core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php, line 14
Namespace
Drupal\Core\Cache\ContextMembers
Name | Modifiers | Type | Description |
---|---|---|---|
ContainerAware::$container | protected | property | |
ContainerAware::setContainer | public | function | Sets the container. |
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 |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!Context!MenuActiveTrailsCacheContext.php/class/MenuActiveTrailsCacheContext/8.1.x