function BlockContentCacheTagsTest::getAdditionalCacheTagsForEntity
Same name and namespace in other branches
- 9 core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php \Drupal\Tests\block_content\Functional\BlockContentCacheTagsTest::getAdditionalCacheTagsForEntity()
- 10 core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php \Drupal\Tests\block_content\Functional\BlockContentCacheTagsTest::getAdditionalCacheTagsForEntity()
- 11.x core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php \Drupal\Tests\block_content\Functional\BlockContentCacheTagsTest::getAdditionalCacheTagsForEntity()
Each comment must have a comment body, which always has a text format.
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.