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

File

core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php, line 14

Namespace

Drupal\Core\Cache\Context

Members

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