You are here

public function SettingsForm::validateForm in File metadata manager 8.2

Same name and namespace in other branches
  1. 8 src/Form/SettingsForm.php \Drupal\file_mdm\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

src/Form/SettingsForm.php, line 109

Class

SettingsForm
Configures file_mdm settings for this site.

Namespace

Drupal\file_mdm\Form

Code

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

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