You are here

public static function RouteCacheContext::getLabel in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php \Drupal\Core\Cache\Context\RouteCacheContext::getLabel()
  2. 9 core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php \Drupal\Core\Cache\Context\RouteCacheContext::getLabel()

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides CacheContextInterface::getLabel

1 method overrides RouteCacheContext::getLabel()
RouteNameCacheContext::getLabel in core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php
Returns the label of the cache context.

File

core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php, line 35

Class

RouteCacheContext
Defines the RouteCacheContext service, for "per route" caching.

Namespace

Drupal\Core\Cache\Context

Code

public static function getLabel() {
  return t('Route');
}