function CommentResourceTestBase::getExpectedCacheContexts

Same name in other branches
  1. 9 core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase::getExpectedCacheContexts()
  2. 10 core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase::getExpectedCacheContexts()
  3. 11.x core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase::getExpectedCacheContexts()

Overrides EntityResourceTestBase::getExpectedCacheContexts

File

core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php, line 266

Class

CommentResourceTestBase

Namespace

Drupal\Tests\comment\Functional\Rest

Code

protected function getExpectedCacheContexts() {
    return Cache::mergeContexts([
        'languages:language_interface',
        'theme',
    ], parent::getExpectedCacheContexts());
}

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