function BlockContentCacheTagsTest::getAdditionalCacheTagsForEntity
Each comment must have a comment body, which always has a text format.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to be tested, as created by createEntity().
Return value
array An array of the additional cache tags.
Overrides EntityCacheTagsTestBase::getAdditionalCacheTagsForEntity
1 call to BlockContentCacheTagsTest::getAdditionalCacheTagsForEntity()
- BlockContentCacheTagsTest::testBlock in core/
modules/ block_content/ tests/ src/ Functional/ BlockContentCacheTagsTest.php - Tests that the block is cached with the correct contexts and tags.
File
-
core/
modules/ block_content/ tests/ src/ Functional/ BlockContentCacheTagsTest.php, line 70
Class
- BlockContentCacheTagsTest
- Tests the Custom Block entity's cache tags.
Namespace
Drupal\Tests\block_content\FunctionalCode
protected function getAdditionalCacheTagsForEntity(EntityInterface $entity) {
return [
'config:filter.format.plain_text',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.