function EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing
Same name in other branches
- 8.9.x core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php \Drupal\system\Tests\Entity\EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing()
- 8.9.x core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing()
- 10 core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing()
- 11.x core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\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/ tests/ src/ Functional/ 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/ tests/ src/ Functional/ NodeCacheTagsTest.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 183
Class
- EntityCacheTagsTestBase
- Provides helper methods for Entity cache tags tests.
Namespace
Drupal\Tests\system\Functional\EntityCode
protected function getAdditionalCacheContextsForEntityListing() {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.