function CalculatedCacheContextInterface::getLabel
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php \Drupal\Core\Cache\Context\CalculatedCacheContextInterface::getLabel()
- 10 core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php \Drupal\Core\Cache\Context\CalculatedCacheContextInterface::getLabel()
- 9 core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php \Drupal\Core\Cache\Context\CalculatedCacheContextInterface::getLabel()
Returns the label of the cache context.
Return value
string The label of the cache context.
See also
Cache
1 method overrides CalculatedCacheContextInterface::getLabel()
- QueryArgsCacheContext::getLabel in core/
lib/ Drupal/ Core/ Cache/ Context/ QueryArgsCacheContext.php - Returns the label of the cache context.
File
-
core/
lib/ Drupal/ Core/ Cache/ Context/ CalculatedCacheContextInterface.php, line 18
Class
- CalculatedCacheContextInterface
- Provides an interface for defining a calculated cache context service.
Namespace
Drupal\Core\Cache\ContextCode
public static function getLabel();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.