You are here

public function CacheContextInterface::getContext in Render cache 7.2

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.

Return value

string The string representation of the cache context.

File

lib/Drupal/Core/Cache/CacheContextInterface.php, line 32
Contains \Drupal\Core\Cache\CacheContextInterface.

Class

CacheContextInterface
Provides an interface for defining a cache context service.

Namespace

Drupal\Core\Cache

Code

public function getContext();