You are here

public static function RouteNameCacheContext::getLabel in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

File

core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php, line 20
Contains \Drupal\Core\Cache\Context\RouteNameCacheContext.

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');
}