function NodeCacheTagsTest::getAdditionalCacheContextsForEntityListing
Same name in other branches
- 9 core/modules/node/tests/src/Functional/NodeCacheTagsTest.php \Drupal\Tests\node\Functional\NodeCacheTagsTest::getAdditionalCacheContextsForEntityListing()
- 10 core/modules/node/tests/src/Functional/NodeCacheTagsTest.php \Drupal\Tests\node\Functional\NodeCacheTagsTest::getAdditionalCacheContextsForEntityListing()
- 11.x core/modules/node/tests/src/Functional/NodeCacheTagsTest.php \Drupal\Tests\node\Functional\NodeCacheTagsTest::getAdditionalCacheContextsForEntityListing()
Overrides EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing
File
-
core/
modules/ node/ tests/ src/ Functional/ NodeCacheTagsTest.php, line 76
Class
- NodeCacheTagsTest
- Tests the Node entity's cache tags.
Namespace
Drupal\Tests\node\FunctionalCode
protected function getAdditionalCacheContextsForEntityListing() {
return [
'user.node_grants:view',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.