function ModeratedNodeResourceTestBase::getExpectedCacheTags

Same name in other branches
  1. 11.x core/modules/rest/tests/src/Functional/EntityResource/ModeratedNode/ModeratedNodeResourceTestBase.php \Drupal\Tests\rest\Functional\EntityResource\ModeratedNode\ModeratedNodeResourceTestBase::getExpectedCacheTags()

Overrides EntityResourceTestBase::getExpectedCacheTags

File

core/modules/rest/tests/src/Functional/EntityResource/ModeratedNode/ModeratedNodeResourceTestBase.php, line 80

Class

ModeratedNodeResourceTestBase
Extend the Node resource test base and apply moderation to the entity.

Namespace

Drupal\Tests\rest\Functional\EntityResource\ModeratedNode

Code

protected function getExpectedCacheTags() {
    return Cache::mergeTags(parent::getExpectedCacheTags(), [
        'config:workflows.workflow.editorial',
    ]);
}

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