You are here

public function SearchApiAutocompleteSuggesterPluginBase::submitConfigurationForm in Search API Autocomplete 7

Submits the plugin's configuration form.

Should take care of calling setConfiguration() with the new configuration values as appropriate.

Parameters

array $form: An associative array containing the structure of the form.

array $form_state: The current state of the form.

Overrides SearchApiAutocompleteSuggesterInterface::submitConfigurationForm

2 methods override SearchApiAutocompleteSuggesterPluginBase::submitConfigurationForm()
SearchApiAutocompleteLiveResultsSuggester::submitConfigurationForm in src/SearchApiAutocompleteLiveResultsSuggester.php
Submits the plugin's configuration form.
SearchApiAutocompleteServerSuggester::submitConfigurationForm in src/SearchApiAutocompleteServerSuggester.php
Submits the plugin's configuration form.

File

src/SearchApiAutocompleteSuggesterPluginBase.php, line 152
Contains SearchApiAutocompleteSuggesterPluginBase.

Class

SearchApiAutocompleteSuggesterPluginBase
Provides a base class for suggester plugins.

Code

public function submitConfigurationForm(array $form, array &$form_state) {
  if (!empty($form_state['values'])) {
    $this
      ->setConfiguration($form_state['values']);
  }
}