You are here

protected function EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing()

Returns the additional cache tags for the tested entity's listing by type.

Return value

string[] An array of the additional cache contexts.

1 call to EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing()
EntityCacheTagsTestBase::testReferencedEntity in core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php
Tests cache tags presence and invalidation of the entity when referenced.
1 method overrides EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing()
NodeCacheTagsTest::getAdditionalCacheContextsForEntityListing in core/modules/node/tests/src/Functional/NodeCacheTagsTest.php
Returns the additional cache tags for the tested entity's listing by type.

File

core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php, line 183

Class

EntityCacheTagsTestBase
Provides helper methods for Entity cache tags tests.

Namespace

Drupal\Tests\system\Functional\Entity

Code

protected function getAdditionalCacheContextsForEntityListing() {
  return [];
}