function MediaResourceTestBase::getExpectedCacheContexts

Same name in other branches
  1. 10 core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php \Drupal\Tests\media\Functional\Rest\MediaResourceTestBase::getExpectedCacheContexts()

Overrides EntityResourceTestBase::getExpectedCacheContexts

File

core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php, line 315

Class

MediaResourceTestBase

Namespace

Drupal\Tests\media\Functional\Rest

Code

protected function getExpectedCacheContexts() {
    return [
        'languages:language_interface',
        'url.site',
        'user.permissions',
    ];
}

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