You are here

public static function NoOptimizeCacheContext::getLabel in Drupal 8

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

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides CacheContextInterface::getLabel

File

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

Class

NoOptimizeCacheContext
Non-optimizable context class.

Namespace

Drupal\Tests\Core\Cache\Context

Code

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