protected function BricksTreeDynamicInlineWidget::createInlineFormHandler in Bricks 8
Same name and namespace in other branches
- 2.x modules/bricks_dynamic/src/Plugin/Field/FieldWidget/BricksTreeDynamicInlineWidget.php \Drupal\bricks_dynamic\Plugin\Field\FieldWidget\BricksTreeDynamicInlineWidget::createInlineFormHandler()
Creates an instance of the inline form handler for the current entity type.
Overrides InlineEntityFormBase::createInlineFormHandler
File
- modules/
bricks_dynamic/ src/ Plugin/ Field/ FieldWidget/ BricksTreeDynamicInlineWidget.php, line 72
Class
- BricksTreeDynamicInlineWidget
- Plugin annotation @FieldWidget( id = "bricks_tree_dynamic_inline", label = @Translation("Bricks tree Dynamic (Inline entity form)"), description = @Translation("A tree of inline entity forms."), field_types = { "bricks_dynamic" }, …
Namespace
Drupal\bricks_dynamic\Plugin\Field\FieldWidgetCode
protected function createInlineFormHandler() {
if (!isset($this->inlineFormHandler) && $this
->getEntityType()) {
$entity_type = $this
->getEntityType();
$this->inlineFormHandler = $this->entityTypeManager
->getHandler($entity_type, 'inline_form');
}
}