You are here

public function KeyEditForm::validateForm in Key 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 KeyFormBase::validateForm

File

src/Form/KeyEditForm.php, line 129

Class

KeyEditForm
Class KeyEditForm.

Namespace

Drupal\key\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {

  // If editing has not been confirmed yet.
  if (!$this->editConfirmed) {
    return;
  }
  else {
    parent::validateForm($form, $form_state);
  }
}