public function AutocompleteService::submitConfigurationForm in Synonyms 8
Process submitted values and generate new configuration.
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.
\Drupal\synonyms\SynonymInterface $synonym_config: Synonym config entity in the context of which the form is being built.
Return value
array Array of new behavior configuration that corresponds to the submitted values in the form
Overrides SynonymsBehaviorConfigurableInterface::submitConfigurationForm
File
- src/
SynonymsService/ Behavior/ AutocompleteService.php, line 117
Class
- AutocompleteService
- Synonyms behavior service for autocomplete.
Namespace
Drupal\synonyms\SynonymsService\BehaviorCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state, SynonymInterface $synonym_config) {
return [
'wording' => $form_state
->getValue('wording'),
];
}