function 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/ 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 190
Class
- EntityCacheTagsTestBase
- Provides helper methods for Entity cache tags tests.
Namespace
Drupal\system\Tests\EntityCode
protected function getAdditionalCacheContextsForEntityListing() {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.