You are here

public static function BazCacheContext::getLabel in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\BazCacheContext::getLabel()

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides CalculatedCacheContextInterface::getLabel

See also

Cache

File

core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php, line 258
Contains \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest.

Class

BazCacheContext
Fake calculated cache context class.

Namespace

Drupal\Tests\Core\Cache\Context

Code

public static function getLabel() {
  return 'Baz';
}