function BlockContentResourceTestBase::getExpectedCacheContexts
Same name in other branches
- 8.9.x core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php \Drupal\Tests\block_content\Functional\Rest\BlockContentResourceTestBase::getExpectedCacheContexts()
- 10 core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php \Drupal\Tests\block_content\Functional\Rest\BlockContentResourceTestBase::getExpectedCacheContexts()
- 11.x core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php \Drupal\Tests\block_content\Functional\Rest\BlockContentResourceTestBase::getExpectedCacheContexts()
Overrides EntityResourceTestBase::getExpectedCacheContexts
1 call to BlockContentResourceTestBase::getExpectedCacheContexts()
- BlockContentHalJsonAnonTest::getExpectedCacheContexts in core/
modules/ hal/ tests/ src/ Functional/ block_content/ BlockContentHalJsonAnonTest.php - The expected cache contexts for the GET/HEAD response of the test entity.
1 method overrides BlockContentResourceTestBase::getExpectedCacheContexts()
- BlockContentHalJsonAnonTest::getExpectedCacheContexts in core/
modules/ hal/ tests/ src/ Functional/ block_content/ BlockContentHalJsonAnonTest.php - The expected cache contexts for the GET/HEAD response of the test entity.
File
-
core/
modules/ block_content/ tests/ src/ Functional/ Rest/ BlockContentResourceTestBase.php, line 202
Class
- BlockContentResourceTestBase
- ResourceTestBase for BlockContent entity.
Namespace
Drupal\Tests\block_content\Functional\RestCode
protected function getExpectedCacheContexts() {
return Cache::mergeContexts([
'url.site',
], $this->container
->getParameter('renderer.config')['required_cache_contexts']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.