function EntityTestLabelResourceTestBase::getExpectedCacheContexts

Same name in other branches
  1. 9 core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestLabelResourceTestBase.php \Drupal\Tests\entity_test\Functional\Rest\EntityTestLabelResourceTestBase::getExpectedCacheContexts()
  2. 8.9.x core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestLabelResourceTestBase.php \Drupal\Tests\entity_test\Functional\Rest\EntityTestLabelResourceTestBase::getExpectedCacheContexts()
  3. 10 core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestLabelResourceTestBase.php \Drupal\Tests\entity_test\Functional\Rest\EntityTestLabelResourceTestBase::getExpectedCacheContexts()

Overrides EntityResourceTestBase::getExpectedCacheContexts

File

core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestLabelResourceTestBase.php, line 140

Class

EntityTestLabelResourceTestBase

Namespace

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