protected function CommentCacheTagsTest::getAdditionalCacheContextsForEntity in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/comment/src/Tests/CommentCacheTagsTest.php \Drupal\comment\Tests\CommentCacheTagsTest::getAdditionalCacheContextsForEntity()
Returns the additional (non-standard) cache contexts for the tested entity.
Only list cache contexts that aren't part of the required cache contexts.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to be tested, as created by createEntity().
Return value
string[] An array of the additional cache contexts.
Overrides EntityCacheTagsTestBase::getAdditionalCacheContextsForEntity
See also
\Drupal\system\Tests\Entity\EntityCacheTagsTestBase::createEntity()
File
- core/
modules/ comment/ src/ Tests/ CommentCacheTagsTest.php, line 141 - Contains \Drupal\comment\Tests\CommentCacheTagsTest.
Class
- CommentCacheTagsTest
- Tests the Comment entity's cache tags.
Namespace
Drupal\comment\TestsCode
protected function getAdditionalCacheContextsForEntity(EntityInterface $entity) {
return [];
}