protected function EntityCacheTagsTestBase::getAdditionalCacheTagsForEntityListing in Drupal 8
Same name in this branch
- 8 core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php \Drupal\system\Tests\Entity\EntityCacheTagsTestBase::getAdditionalCacheTagsForEntityListing()
- 8 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/ src/ Tests/ Entity/ EntityCacheTagsTestBase.php - Tests cache tags presence and invalidation of the entity when referenced.
File
- core/
modules/ system/ src/ Tests/ Entity/ EntityCacheTagsTestBase.php, line 203
Class
- EntityCacheTagsTestBase
- Provides helper methods for Entity cache tags tests.
Namespace
Drupal\system\Tests\EntityCode
protected function getAdditionalCacheTagsForEntityListing() {
return [];
}