You are here

public static function ViewsTestCacheContext::getLabel in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php \Drupal\views_test_data\Cache\ViewsTestCacheContext::getLabel()

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides CacheContextInterface::getLabel

File

core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php, line 23
Contains \Drupal\views_test_data\Cache\ViewsTestCacheContext.

Class

ViewsTestCacheContext
Test cache context which uses a dynamic context coming from state.

Namespace

Drupal\views_test_data\Cache

Code

public static function getLabel() {
  return t('Views test cache context');
}