protected function SearchPageResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability in Drupal 8
Same name and namespace in other branches
- 9 core/modules/search/tests/src/Functional/Rest/SearchPageResourceTestBase.php \Drupal\Tests\search\Functional\Rest\SearchPageResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability()
- 10 core/modules/search/tests/src/Functional/Rest/SearchPageResourceTestBase.php \Drupal\Tests\search\Functional\Rest\SearchPageResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability()
The cacheability of unauthorized 'view' entity access.
Parameters
bool $is_authenticated: Whether the current request is authenticated or not. This matters for some entity access control handlers, but not for most.
Return value
\Drupal\Core\Cache\CacheableMetadata The expected cacheability.
Overrides EntityResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability
File
- core/
modules/ search/ tests/ src/ Functional/ Rest/ SearchPageResourceTestBase.php, line 105
Class
Namespace
Drupal\Tests\search\Functional\RestCode
protected function getExpectedUnauthorizedEntityAccessCacheability($is_authenticated) {
// @see \Drupal\search\SearchPageAccessControlHandler::checkAccess()
return parent::getExpectedUnauthorizedEntityAccessCacheability($is_authenticated)
->addCacheTags([
'config:search.page.hinode_search',
]);
}