function EntityTestTextItemNormalizerTest::getExpectedCacheTags

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

Return value

string[]

Overrides EntityResourceTestBase::getExpectedCacheTags

File

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

Class

EntityTestTextItemNormalizerTest
@group rest

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.