You are here

protected function InlineEntityFormBase::createInlineFormHandler in Inline Entity Form 8

Creates an instance of the inline form handler for the current entity type.

3 calls to InlineEntityFormBase::createInlineFormHandler()
InlineEntityFormBase::getEntityTypeLabels in src/Plugin/Field/FieldWidget/InlineEntityFormBase.php
Gets the entity type managed by this handler.
InlineEntityFormBase::__construct in src/Plugin/Field/FieldWidget/InlineEntityFormBase.php
Constructs an InlineEntityFormBase object.
InlineEntityFormBase::__wakeup in src/Plugin/Field/FieldWidget/InlineEntityFormBase.php

File

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

Class

InlineEntityFormBase
Inline entity form widget base class.

Namespace

Drupal\inline_entity_form\Plugin\Field\FieldWidget

Code

protected function createInlineFormHandler() {
  if (!isset($this->inlineFormHandler)) {
    $target_type = $this
      ->getFieldSetting('target_type');
    $this->inlineFormHandler = $this->entityTypeManager
      ->getHandler($target_type, 'inline_form');
  }
}