function BlockContentResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability
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::getExpectedUnauthorizedEntityAccessCacheability()
- 10 core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php \Drupal\Tests\block_content\Functional\Rest\BlockContentResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability()
- 11.x core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php \Drupal\Tests\block_content\Functional\Rest\BlockContentResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability()
Overrides EntityResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability
File
-
core/
modules/ block_content/ tests/ src/ Functional/ Rest/ BlockContentResourceTestBase.php, line 186
Class
- BlockContentResourceTestBase
- ResourceTestBase for BlockContent entity.
Namespace
Drupal\Tests\block_content\Functional\RestCode
protected function getExpectedUnauthorizedEntityAccessCacheability($is_authenticated) {
// @see \Drupal\block_content\BlockContentAccessControlHandler()
return parent::getExpectedUnauthorizedEntityAccessCacheability($is_authenticated)->addCacheTags([
'block_content:1',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.