protected function EntityCacheTagsTestBase::getAdditionalCacheTagsForEntityListing in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::getAdditionalCacheTagsForEntityListing()
- 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.
File
- core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityCacheTagsTestBase.php, line 176
Class
- EntityCacheTagsTestBase
- Provides helper methods for Entity cache tags tests.
Namespace
Drupal\Tests\system\Functional\EntityCode
protected function getAdditionalCacheTagsForEntityListing() {
return [];
}