You are here

public function ScriptForm::validateForm in Script Manager 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/ScriptForm.php, line 172

Class

ScriptForm
The script entity add form.

Namespace

Drupal\script_manager\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  parent::validateForm($form, $form_state);
  $this
    ->validateVisibility($form, $form_state);
}