public static function CacheContextInterface::getLabel in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php \Drupal\Core\Cache\Context\CacheContextInterface::getLabel()
Returns the label of the cache context.
Return value
string The label of the cache context.
23 methods override CacheContextInterface::getLabel()
- AccountPermissionsCacheContext::getLabel in core/
lib/ Drupal/ Core/ Cache/ Context/ AccountPermissionsCacheContext.php - Returns the label of the cache context.
- BookNavigationCacheContext::getLabel in core/
modules/ book/ src/ Cache/ BookNavigationCacheContext.php - Returns the label of the cache context.
- ConfigOverrideIntegrationTestCacheContext::getLabel in core/
modules/ config/ tests/ config_override_integration_test/ src/ Cache/ ConfigOverrideIntegrationTestCacheContext.php - Returns the label of the cache context.
- EntityTestViewGrantsCacheContext::getLabel in core/
modules/ system/ tests/ modules/ entity_test/ src/ Cache/ EntityTestViewGrantsCacheContext.php - Returns the label of the cache context.
- FooCacheContext::getLabel in core/
tests/ Drupal/ Tests/ Core/ Cache/ Context/ CacheContextsManagerTest.php - Returns the label of the cache context.
File
- core/
lib/ Drupal/ Core/ Cache/ Context/ CacheContextInterface.php, line 16
Class
- CacheContextInterface
- Provides an interface for defining a cache context service.
Namespace
Drupal\Core\Cache\ContextCode
public static function getLabel();