You are here

public function SearchApiAutocompleteServerSuggester::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 SearchApiAutocompleteSuggesterPluginBase::submitConfigurationForm

File

src/SearchApiAutocompleteServerSuggester.php, line 65
Contains SearchApiAutocompleteServerSuggester.

Class

SearchApiAutocompleteServerSuggester
Provides a suggester plugin that retrieves suggestions from the server.

Code

public function submitConfigurationForm(array $form, array &$form_state) {
  $values = $form_state['values'];
  $values['fields'] = array_keys(array_filter($values['fields']));
  $this
    ->setConfiguration($values);
}