Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
RouteCacheContext.php
function RouteCacheContext::getLabel
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'
); }
RSS feed