function EntityTestTextItemNormalizerTest::getExpectedCacheTags

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php \Drupal\Tests\entity_test\Functional\Rest\EntityTestTextItemNormalizerTest::getExpectedCacheTags()
  2. 8.9.x core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php \Drupal\Tests\entity_test\Functional\Rest\EntityTestTextItemNormalizerTest::getExpectedCacheTags()
  3. 10 core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php \Drupal\Tests\entity_test\Functional\Rest\EntityTestTextItemNormalizerTest::getExpectedCacheTags()

The expected cache tags for the GET/HEAD response of the test entity.

Return value

string[] The expected cache tags.

Overrides EntityResourceTestBase::getExpectedCacheTags

File

core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php, line 128

Class

EntityTestTextItemNormalizerTest
@group rest @group #slow

Namespace

Drupal\Tests\entity_test\Functional\Rest

Code

protected function getExpectedCacheTags() {
  return Cache::mergeTags([
    // The cache tag set by the processed_text element itself.
'config:filter.format.my_text_format',
    // The cache tags set by the filter_test_cache_tags filter.
'foo:bar',
    'foo:baz',
    // The cache tags set by the filter_test_cache_merge filter.
'merge:tag',
  ], parent::getExpectedCacheTags());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.