function FieldConfigResourceTestBase::getExpectedCacheContexts

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

Overrides EntityResourceTestBase::getExpectedCacheContexts

File

core/modules/field/tests/src/Functional/Rest/FieldConfigResourceTestBase.php, line 107

Class

FieldConfigResourceTestBase

Namespace

Drupal\Tests\field\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.