Same name and namespace in other branches
  1. 8.9.x core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::getAdditionalCacheTagsForEntityListing()
  2. 9 core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::getAdditionalCacheTagsForEntityListing()

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

Necessary when there are unavoidable default entities of this type, e.g. the anonymous and administrator User entities always exist.

Return value

array An array of the additional cache tags.

1 call to EntityCacheTagsTestBase::getAdditionalCacheTagsForEntityListing()
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::getAdditionalCacheTagsForEntityListing()
UserCacheTagsTest::getAdditionalCacheTagsForEntityListing in core/modules/user/tests/src/Functional/UserCacheTagsTest.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 180

Class

EntityCacheTagsTestBase
Provides helper methods for Entity cache tags tests.

Namespace

Drupal\Tests\system\Functional\Entity

Code

protected function getAdditionalCacheTagsForEntityListing() {
  return [];
}