public function QueueForm::validateForm in Advanced Queue 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/ QueueForm.php, line 145
Class
- QueueForm
- Queue form.
Namespace
Drupal\advancedqueue\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
parent::validateForm($form, $form_state);
$values = $form_state
->getValues();
$backend = $this->backendManager
->createInstance($values['backend'], $form['configuration']['#default_configuration']);
$backend
->validateConfigurationForm($form['configuration'], $form_state);
}