function RouteNameCacheContext::getLabel

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php \Drupal\Core\Cache\Context\RouteNameCacheContext::getLabel()
  2. 8.9.x core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php \Drupal\Core\Cache\Context\RouteNameCacheContext::getLabel()
  3. 10 core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php \Drupal\Core\Cache\Context\RouteNameCacheContext::getLabel()

Overrides RouteCacheContext::getLabel

1 method overrides RouteNameCacheContext::getLabel()
LayoutBuilderUiCacheContext::getLabel in core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php

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

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