You are here

public static function RouteNameCacheContext::getLabel in Drupal 8

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

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides RouteCacheContext::getLabel

1 method overrides RouteNameCacheContext::getLabel()
LayoutBuilderUiCacheContext::getLabel in core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php
Returns the label of the cache context.

File

core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php, line 15

Class

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

Namespace

Drupal\Core\Cache\Context

Code

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