You are here

protected function NodeCacheTagsTest::getAdditionalCacheContextsForEntity in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/tests/src/Functional/NodeCacheTagsTest.php \Drupal\Tests\node\Functional\NodeCacheTagsTest::getAdditionalCacheContextsForEntity()
  2. 9 core/modules/node/tests/src/Functional/NodeCacheTagsTest.php \Drupal\Tests\node\Functional\NodeCacheTagsTest::getAdditionalCacheContextsForEntity()

File

core/modules/node/tests/src/Functional/NodeCacheTagsTest.php, line 49

Class

NodeCacheTagsTest
Tests the Node entity's cache tags.

Namespace

Drupal\Tests\node\Functional

Code

protected function getAdditionalCacheContextsForEntity(EntityInterface $entity) {
  return [
    'timezone',
  ];
}