You are here

public function SelectService::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/SelectService.php, line 80

Class

SelectService
Synonyms behavior service for select widget.

Namespace

Drupal\synonyms\SynonymsService\Behavior

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state, SynonymInterface $synonym_config) {
  return [
    'wording' => $form_state
      ->getValue('wording'),
  ];
}