Drupal 8  8.0.2
RouteNameCacheContext Class Reference
Inheritance diagram for RouteNameCacheContext:

Public Member Functions

 getContext ()
 
- Public Member Functions inherited from RouteCacheContext
 __construct (RouteMatchInterface $route_match)
 
 getContext ()
 
 getCacheableMetadata ()
 

Static Public Member Functions

static getLabel ()
 
- Static Public Member Functions inherited from RouteCacheContext
static getLabel ()
 

Additional Inherited Members

- Protected Attributes inherited from RouteCacheContext
 $routeMatch
 

Detailed Description

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

Cache context ID: 'route.name'.

Member Function Documentation

getContext ( )

{Returns the string representation of the cache context.A cache context service's name is used as a token (placeholder) cache key, and is then replaced with the string returned by this method.

Returns
string The string representation of the cache context.
}

Implements CacheContextInterface.

References Drupal\routeMatch().

Here is the call graph for this function:

static getLabel ( )
static

{Returns the label of the cache context.

Returns
string The label of the cache context.
}

Implements CacheContextInterface.

References t().

Here is the call graph for this function:


The documentation for this class was generated from the following file: