protected function NodeCacheTagsTest::getAdditionalCacheContextsForEntityListing in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Tests/NodeCacheTagsTest.php \Drupal\node\Tests\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/ src/ Tests/ NodeCacheTagsTest.php, line 63 - Contains \Drupal\node\Tests\NodeCacheTagsTest.
Class
- NodeCacheTagsTest
- Tests the Node entity's cache tags.
Namespace
Drupal\node\TestsCode
protected function getAdditionalCacheContextsForEntityListing() {
return [
'user.node_grants:view',
];
}