public function SearchApiAutocompleteLiveResultsSuggester::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/
SearchApiAutocompleteLiveResultsSuggester.php, line 68 - Contains SearchApiAutocompleteLiveResultsSuggester.
Class
- SearchApiAutocompleteLiveResultsSuggester
- Provides a suggester plugin that retrieves Live Results.
Code
public function submitConfigurationForm(array $form, array &$form_state) {
$values = $form_state['values'];
$values['fields'] = array_keys(array_filter($values['fields']));
$this
->setConfiguration($values);
}