function ViewsTestCacheContextFilter::getCacheContexts
Same name in other branches
- 9 core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/ViewsTestCacheContextFilter.php \Drupal\views_test_data\Plugin\views\filter\ViewsTestCacheContextFilter::getCacheContexts()
- 8.9.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/ViewsTestCacheContextFilter.php \Drupal\views_test_data\Plugin\views\filter\ViewsTestCacheContextFilter::getCacheContexts()
- 10 core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/ViewsTestCacheContextFilter.php \Drupal\views_test_data\Plugin\views\filter\ViewsTestCacheContextFilter::getCacheContexts()
Overrides FilterPluginBase::getCacheContexts
File
-
core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ filter/ ViewsTestCacheContextFilter.php, line 25
Class
Namespace
Drupal\views_test_data\Plugin\views\filterCode
public function getCacheContexts() {
$cache_contexts = parent::getCacheContexts();
$cache_contexts[] = 'views_test_cache_context';
return $cache_contexts;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.