You are here

public function DummyCacheContext::getContext in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 tests/modules/entity_browser_test/src/Cache/Context/DummyCacheContext.php \Drupal\entity_browser_test\Cache\Context\DummyCacheContext::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.

Return value

string The string representation of the cache context.

Overrides CacheContextInterface::getContext

File

tests/modules/entity_browser_test/src/Cache/Context/DummyCacheContext.php, line 25

Class

DummyCacheContext
Dummy cache context for Entity browser test purposes.

Namespace

Drupal\entity_browser_test\Cache\Context

Code

public function getContext() {
  return "dummy";
}