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

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
doc_Drupal
2016-10-29 09:26:05
Comments
Leave a Comment

Please login to continue.