You are here

public static function InlineEntityForm::validateEntityForm in Inline Entity Form 8

Validates the entity form using the inline form handler.

Parameters

array $entity_form: The entity form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

File

src/Element/InlineEntityForm.php, line 165

Class

InlineEntityForm
Provides an inline entity form element.

Namespace

Drupal\inline_entity_form\Element

Code

public static function validateEntityForm(&$entity_form, FormStateInterface $form_state) {
  $inline_form_handler = static::getInlineFormHandler($entity_form['#entity_type']);
  $inline_form_handler
    ->entityFormValidate($entity_form, $form_state);
}