protected function EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php \Drupal\system\Tests\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/ src/ Tests/ 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/ src/ Tests/ NodeCacheTagsTest.php - Returns the additional cache tags for the tested entity's listing by type.
File
- core/
modules/ system/ src/ Tests/ Entity/ EntityCacheTagsTestBase.php, line 187 - Contains \Drupal\system\Tests\Entity\EntityCacheTagsTestBase.
Class
- EntityCacheTagsTestBase
- Provides helper methods for Entity cache tags tests.
Namespace
Drupal\system\Tests\EntityCode
protected function getAdditionalCacheContextsForEntityListing() {
return [];
}