LanguagesCacheContext

Defines the LanguagesCacheContext service, for "per language" caching.

Hierarchy

File

core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php, line 11

Namespace

Drupal\Core\Cache\Context

Members

Name Modifiers Type Description
LanguagesCacheContext::$languageManager protected property The language manager.
LanguagesCacheContext::getCacheableMetadata public function Gets the cacheability metadata for the context based on the parameter value. Overrides CalculatedCacheContextInterface::getCacheableMetadata
LanguagesCacheContext::getContext public function $type can be NULL, or one of the language types supported by the language manager, typically: Overrides CalculatedCacheContextInterface::getContext
LanguagesCacheContext::getLabel public static function Returns the label of the cache context. Overrides CalculatedCacheContextInterface::getLabel
LanguagesCacheContext::__construct public function Constructs a new LanguagesCacheContext service.
doc_Drupal
2016-10-29 09:22:57
Comments
Leave a Comment

Please login to continue.