function CacheContextInterface::getLabel

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php \Drupal\Core\Cache\Context\CacheContextInterface::getLabel()
  2. 8.9.x core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php \Drupal\Core\Cache\Context\CacheContextInterface::getLabel()
  3. 11.x 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.

22 methods override CacheContextInterface::getLabel()
AccountPermissionsCacheContext::getLabel in core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php
BookNavigationCacheContext::getLabel in core/modules/book/src/Cache/BookNavigationCacheContext.php
ConfigOverrideIntegrationTestCacheContext::getLabel in core/modules/config/tests/config_override_integration_test/src/Cache/ConfigOverrideIntegrationTestCacheContext.php
EntityTestViewGrantsCacheContext::getLabel in core/modules/system/tests/modules/entity_test/src/Cache/EntityTestViewGrantsCacheContext.php
FooCacheContext::getLabel in core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php

... See full list

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\Context

Code

public static function getLabel();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.