function CacheContextInterface::getLabel

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

1 method overrides CacheContextInterface::getLabel()
PathCacheContext::getLabel in core/lib/Drupal/Core/Cache/Context/PathCacheContext.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\Context

Code

public static function getLabel();

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