function ViewsTestCacheContext::getCacheableMetadata
Same name in other branches
- 8.9.x core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php \Drupal\views_test_data\Cache\ViewsTestCacheContext::getCacheableMetadata()
- 10 core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php \Drupal\views_test_data\Cache\ViewsTestCacheContext::getCacheableMetadata()
- 11.x core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php \Drupal\views_test_data\Cache\ViewsTestCacheContext::getCacheableMetadata()
Overrides CacheContextInterface::getCacheableMetadata
File
-
core/
modules/ views/ tests/ modules/ views_test_data/ src/ Cache/ ViewsTestCacheContext.php, line 32
Class
- ViewsTestCacheContext
- Test cache context which uses a dynamic context coming from state.
Namespace
Drupal\views_test_data\CacheCode
public function getCacheableMetadata() {
return new CacheableMetadata();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.