You are here

protected function NodeCacheTagsTest::getAdditionalCacheContextsForEntityListing in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/node/tests/src/Functional/NodeCacheTagsTest.php \Drupal\Tests\node\Functional\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 76

Class

NodeCacheTagsTest
Tests the Node entity's cache tags.

Namespace

Drupal\Tests\node\Functional

Code

protected function getAdditionalCacheContextsForEntityListing() {
  return [
    'user.node_grants:view',
  ];
}