class FileTestAccessControlHandler in Drupal 10
Same name and namespace in other branches
- 8 core/modules/file/tests/file_test/src/FileTestAccessControlHandler.php \Drupal\file_test\FileTestAccessControlHandler
- 9 core/modules/file/tests/file_test/src/FileTestAccessControlHandler.php \Drupal\file_test\FileTestAccessControlHandler
Defines a class for an alternate file access control handler.
Hierarchy
- class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTrait
- class \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterface
- class \Drupal\file\FileAccessControlHandler
- class \Drupal\file_test\FileTestAccessControlHandler implements FileAccessFormatterControlHandlerInterface
- class \Drupal\file\FileAccessControlHandler
- class \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterface
Expanded class hierarchy of FileTestAccessControlHandler
File
- core/
modules/ file/ tests/ file_test/ src/ FileTestAccessControlHandler.php, line 13
Namespace
Drupal\file_testView source
class FileTestAccessControlHandler extends FileAccessControlHandler implements FileAccessFormatterControlHandlerInterface {
/**
* {@inheritdoc}
*/
protected function checkAccess(EntityInterface $entity, $operation, AccountInterface $account) {
\Drupal::state()
->set('file_access_formatter_check', TRUE);
return parent::checkAccess($entity, $operation, $account);
}
}