You are here

public function SettingsForm::validateForm in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/aggregator/src/Form/SettingsForm.php \Drupal\aggregator\Form\SettingsForm::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/aggregator/src/Form/SettingsForm.php, line 195

Class

SettingsForm
Configures aggregator settings for this site.

Namespace

Drupal\aggregator\Form

Code

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

  // Let active plugins validate their settings.
  foreach ($this->configurableInstances as $instance) {
    $instance
      ->validateConfigurationForm($form, $form_state);
  }
}