function NodeCacheTagsTest::getAdditionalCacheContextsForEntityListing
Returns the additional cache tags for the tested entity's listing by type.
Return value
string[] An array of the additional cache contexts.
Overrides EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing
File
-
core/
modules/ node/ tests/ src/ Functional/ NodeCacheTagsTest.php, line 69
Class
- NodeCacheTagsTest
- Tests the Node entity's cache tags.
Namespace
Drupal\Tests\node\FunctionalCode
protected function getAdditionalCacheContextsForEntityListing() : array {
return [
'user.node_grants:view',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.