function BlockContentCacheTagsTest::getAdditionalCacheTagsForEntity

Same name and namespace in other branches
  1. 9 core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php \Drupal\Tests\block_content\Functional\BlockContentCacheTagsTest::getAdditionalCacheTagsForEntity()
  2. 8.9.x core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php \Drupal\Tests\block_content\Functional\BlockContentCacheTagsTest::getAdditionalCacheTagsForEntity()
  3. 10 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 71

Class

BlockContentCacheTagsTest
Tests the Content Block entity's cache tags.

Namespace

Drupal\Tests\block_content\Functional

Code

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.