public function SettingsForm::validateForm in Siteimprove 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/ SettingsForm.php, line 360
Class
- SettingsForm
- Siteimprove settings.
Namespace
Drupal\siteimprove\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
parent::validateForm($form, $form_state);
$domain_plugin = $form_state
->getValue('domain_plugin');
$plugin = $this->pluginManagerSiteimproveDomain
->createInstance($domain_plugin);
$plugin
->validateForm($form, $form_state);
}