class ConfigTestAccessControlHandler in Drupal 10
Same name and namespace in other branches
- 8 core/modules/config/tests/config_test/src/ConfigTestAccessControlHandler.php \Drupal\config_test\ConfigTestAccessControlHandler
- 9 core/modules/config/tests/config_test/src/ConfigTestAccessControlHandler.php \Drupal\config_test\ConfigTestAccessControlHandler
Defines the access control handler for the config_test entity type.
Hierarchy
- class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTrait
- class \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterface
- class \Drupal\config_test\ConfigTestAccessControlHandler
- class \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterface
Expanded class hierarchy of ConfigTestAccessControlHandler
See also
\Drupal\config_test\Entity\ConfigTest
File
- core/
modules/ config/ tests/ config_test/ src/ ConfigTestAccessControlHandler.php, line 15
Namespace
Drupal\config_testView source
class ConfigTestAccessControlHandler extends EntityAccessControlHandler {
/**
* {@inheritdoc}
*/
public function checkAccess(EntityInterface $entity, $operation, AccountInterface $account) {
return AccessResult::allowed();
}
/**
* {@inheritdoc}
*/
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
return AccessResult::allowed();
}
}