function CalculatedCacheContextInterface::getLabel

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

10 methods override CalculatedCacheContextInterface::getLabel()
BazCacheContext::getLabel in core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CookiesCacheContext::getLabel in core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php
HeadersCacheContext::getLabel in core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
LanguagesCacheContext::getLabel in core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php
LayoutBuilderIsActiveCacheContext::getLabel in core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php

... See full list

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

Code

public static function getLabel();

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