function RestResourceConfigResourceTestBase::getExpectedCacheContexts

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

Overrides EntityResourceTestBase::getExpectedCacheContexts

File

core/modules/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php, line 97

Class

RestResourceConfigResourceTestBase

Namespace

Drupal\Tests\rest\Functional\Rest

Code

protected function getExpectedCacheContexts() {
    return [
        'user.permissions',
    ];
}

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