You are here

protected function InlineEntityFormBase::getAccessHandler in Inline Entity Form 8

Gets the access handler for the target entity type.

Return value

\Drupal\Core\Entity\EntityAccessControlHandlerInterface The access handler.

File

src/Plugin/Field/FieldWidget/InlineEntityFormBase.php, line 574

Class

InlineEntityFormBase
Inline entity form widget base class.

Namespace

Drupal\inline_entity_form\Plugin\Field\FieldWidget

Code

protected function getAccessHandler() {
  $entity_type_id = $this
    ->getFieldSetting('target_type');
  return $this->entityTypeManager
    ->getAccessControlHandler($entity_type_id);
}