function MediaResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability
Same name in other branches
- 9 core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php \Drupal\Tests\media\Functional\Rest\MediaResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability()
- 10 core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php \Drupal\Tests\media\Functional\Rest\MediaResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability()
- 11.x core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php \Drupal\Tests\media\Functional\Rest\MediaResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability()
Overrides EntityResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability
File
-
core/
modules/ media/ tests/ src/ Functional/ Rest/ MediaResourceTestBase.php, line 452
Class
Namespace
Drupal\Tests\media\Functional\RestCode
protected function getExpectedUnauthorizedEntityAccessCacheability($is_authenticated) {
// @see \Drupal\media\MediaAccessControlHandler::checkAccess()
return parent::getExpectedUnauthorizedEntityAccessCacheability($is_authenticated)->addCacheTags([
'media:1',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.