You are here

public function FormEntityBaseForm::validateForm in Flexiform 8

Form validation handler.

Parameters

array $form: An associative array containing the structure of the form.

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

Overrides FormBase::validateForm

File

src/Form/FormEntityBaseForm.php, line 163

Class

FormEntityBaseForm
Provides a base class for entity forms.

Namespace

Drupal\flexiform\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  $form_state = MultipleEntityFormState::createForForm($form, $form_state);
  if (!empty($this->formEntity)) {
    $this->formEntity
      ->configurationFormValidate($form['configuration'], $form_state);
  }
}