function FieldConfigResourceTestBase::getExpectedCacheContexts
The expected cache contexts for the GET/HEAD response of the test entity.
Return value
string[] The expected cache contexts.
Overrides EntityResourceTestBase::getExpectedCacheContexts
File
-
core/
modules/ field/ tests/ src/ Functional/ Rest/ FieldConfigResourceTestBase.php, line 110
Class
- FieldConfigResourceTestBase
- Resource test base for the FieldConfig entity.
Namespace
Drupal\Tests\field\Functional\RestCode
protected function getExpectedCacheContexts() {
return [
'user.permissions',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.