You are here

public function DevelGenerateForm::validateForm in Devel 8

Same name and namespace in other branches
  1. 8.3 devel_generate/src/Form/DevelGenerateForm.php \Drupal\devel_generate\Form\DevelGenerateForm::validateForm()
  2. 8.2 devel_generate/src/Form/DevelGenerateForm.php \Drupal\devel_generate\Form\DevelGenerateForm::validateForm()
  3. 4.x devel_generate/src/Form/DevelGenerateForm.php \Drupal\devel_generate\Form\DevelGenerateForm::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

devel_generate/src/Form/DevelGenerateForm.php, line 93

Class

DevelGenerateForm
Defines a form that allows privileged users to generate entities.

Namespace

Drupal\devel_generate\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  $plugin_id = $this
    ->getPluginIdFromRequest();
  $instance = $this
    ->getPluginInstance($plugin_id);
  $instance
    ->settingsFormValidate($form, $form_state);
}