public function SynonymForm::validateForm in Synonyms 2.0.x
Same name and namespace in other branches
- 8 src/Form/SynonymForm.php \Drupal\synonyms\Form\SynonymForm::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/ SynonymForm.php, line 179
Class
- SynonymForm
- Entity form for 'synonym' config entity type.
Namespace
Drupal\synonyms\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
parent::validateForm($form, $form_state);
if ($this
->showWordingForm()) {
$this->entity
->getProviderPluginInstance()
->validateConfigurationForm($form['ajax_wrapper']['provider_configuration'], $this
->getSubFormState('provider_configuration', $form, $form_state), $this->entity);
}
}