You are here

public function MappingEditForm::validateForm in GatherContent 8.5

Same name and namespace in other branches
  1. 8.4 gathercontent_ui/src/Form/MappingEditForm.php \Drupal\gathercontent_ui\Form\MappingEditForm::validateForm()

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

gathercontent_ui/src/Form/MappingEditForm.php, line 141

Class

MappingEditForm
Class MappingEditForm.

Namespace

Drupal\gathercontent_ui\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  if ($form_state
    ->getTriggeringElement()['#id'] == 'edit-submit') {
    if ($this->step === 'field_mapping') {
      $this->mappingStep
        ->doValidate($form, $form_state);
    }
  }
}