You are here

public function NoOptimizeCacheContext::getContext in Drupal 10

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

File

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

Class

NoOptimizeCacheContext
Non-optimizable context class.

Namespace

Drupal\Tests\Core\Cache\Context

Code

public function getContext() {
  return 'bar';
}