Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CalculatedCacheContextInterface.php

function CalculatedCacheContextInterface::getLabel

Returns the label of the cache context.

Return value

string The label of the cache context.

See also

Cache

9 methods override CalculatedCacheContextInterface::getLabel()
CookiesCacheContext::getLabel in core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php
Returns the label of the cache context.
HeadersCacheContext::getLabel in core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
Returns the label of the cache context.
LanguagesCacheContext::getLabel in core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php
Returns the label of the cache context.
LayoutBuilderIsActiveCacheContext::getLabel in core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php
Returns the label of the cache context.
MenuActiveTrailsCacheContext::getLabel in core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php
Returns the label of the cache context.

... 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();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal