class EditorAccessControlHandler

Same name and namespace in other branches
  1. 11.x core/modules/editor/src/EditorAccessControlHandler.php \Drupal\editor\EditorAccessControlHandler

Defines the access control handler for the text editor entity type.

Hierarchy

Expanded class hierarchy of EditorAccessControlHandler

See also

\Drupal\editor\Entity\Editor

File

core/modules/editor/src/EditorAccessControlHandler.php, line 14

Namespace

Drupal\editor
View 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.