You are here

public function ImageToolkitForm::validateForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/Form/ImageToolkitForm.php \Drupal\system\Form\ImageToolkitForm::validateForm()
  2. 9 core/modules/system/src/Form/ImageToolkitForm.php \Drupal\system\Form\ImageToolkitForm::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

core/modules/system/src/Form/ImageToolkitForm.php, line 103

Class

ImageToolkitForm
Configures image toolkit settings for this site.

Namespace

Drupal\system\Form

Code

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

  // Call the form validation handler for each of the toolkits.
  foreach ($this->availableToolkits as $toolkit) {
    $toolkit
      ->validateConfigurationForm($form, $form_state);
  }
}