3 namespace Drupal\editor;
5 use Drupal\Core\Entity\EntityAccessControlHandler;
6 use Drupal\Core\Entity\EntityInterface;
7 use Drupal\Core\Session\AccountInterface;
10 * Defines the access control handler for the text editor entity type.
12 * @see \Drupal\editor\Entity\Editor
14 class EditorAccessControlHandler extends EntityAccessControlHandler {
19 protected function checkAccess(EntityInterface $editor, $operation, AccountInterface $account) {
20 /** @var \Drupal\editor\EditorInterface $editor */
21 return $editor->getFilterFormat()->access($operation, $account, TRUE);