class EditorAccessControlHandler
Same name and namespace in other branches
- 11.x core/modules/editor/src/EditorAccessControlHandler.php \Drupal\editor\EditorAccessControlHandler
Defines the access control handler for the text editor entity type.
Hierarchy
- class \Drupal\Core\Entity\EntityHandlerBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\Core\Entity\EntityAccessControlHandler extends \Drupal\Core\Entity\EntityAccessControlHandlerInterface implements \Drupal\Core\Entity\EntityHandlerBase
- class \Drupal\editor\EditorAccessControlHandler implements \Drupal\Core\Entity\EntityAccessControlHandler
- class \Drupal\Core\Entity\EntityAccessControlHandler extends \Drupal\Core\Entity\EntityAccessControlHandlerInterface implements \Drupal\Core\Entity\EntityHandlerBase
Expanded class hierarchy of EditorAccessControlHandler
See also
File
-
core/
modules/ editor/ src/ EditorAccessControlHandler.php, line 14
Namespace
Drupal\editorView source
class EditorAccessControlHandler extends EntityAccessControlHandler {
/**
* {@inheritdoc}
*/
protected function checkAccess(EntityInterface $editor, $operation, AccountInterface $account) {
/** @var \Drupal\editor\EditorInterface $editor */
return $editor->getFilterFormat()
->access($operation, $account, TRUE);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.