You are here

public function SynonymsBehaviorConfigurableInterface::validateConfigurationForm in Synonyms 8

Validate submitted values into your configuration form.

Parameters

array $form: Your configuration form as it was built in static::buildConfigurationForm().

\Drupal\Core\Form\FormStateInterface $form_state: Form state that corresponds to this form. You should rise form validation errors on this form state, should you discover any in user input.

\Drupal\synonyms\SynonymInterface $synonym_config: Synonym config entity in the context of which the form is being built.

2 methods override SynonymsBehaviorConfigurableInterface::validateConfigurationForm()
AutocompleteService::validateConfigurationForm in src/SynonymsService/Behavior/AutocompleteService.php
Validate submitted values into your configuration form.
SelectService::validateConfigurationForm in src/SynonymsService/Behavior/SelectService.php
Validate submitted values into your configuration form.

File

src/SynonymsService/Behavior/SynonymsBehaviorConfigurableInterface.php, line 46

Class

SynonymsBehaviorConfigurableInterface
Interface of a configurable synonyms behavior.

Namespace

Drupal\synonyms\SynonymsService\Behavior

Code

public function validateConfigurationForm(array &$form, FormStateInterface $form_state, SynonymInterface $synonym_config);