You are here

public static function InlineEntityFormBase::addIefSubmitCallbacks in Inline Entity Form 8

Adds submit callbacks to the inline entity form.

Parameters

array $element: Form array structure.

File

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

Class

InlineEntityFormBase
Inline entity form widget base class.

Namespace

Drupal\inline_entity_form\Plugin\Field\FieldWidget

Code

public static function addIefSubmitCallbacks($element) {
  $element['#ief_element_submit'][] = [
    get_called_class(),
    'submitSaveEntity',
  ];
  return $element;
}