You are here

public function ModuleHooksForm::validateForm in Module Builder 8.3

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 ComponentSectionForm::validateForm

File

src/Form/ModuleHooksForm.php, line 117

Class

ModuleHooksForm
Form for selecting hooks.

Namespace

Drupal\module_builder\Form

Code

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

  // No validation for hooks, and we need to override the parent method that
  // expects a 'data' form element which this form doesn't have.
}