You are here

protected function BlockContentCacheTagsTest::getAdditionalCacheTagsForEntity in Drupal 9

Same name and namespace in other branches
  1. 8 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\Functional

Code

protected function getAdditionalCacheTagsForEntity(EntityInterface $entity) {
  return [
    'config:filter.format.plain_text',
  ];
}