public static function CacheContextInterface::getLabel in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php \Drupal\Core\Cache\Context\CacheContextInterface::getLabel()
 - 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.
20 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.
 - IpCacheContext::getLabel in core/
lib/ Drupal/ Core/ Cache/ Context/ IpCacheContext.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();