public function SearchApiSearchService::configurationFormSubmit in Fast Autocomplete 7
Implements SearchServiceInterface::configurationFormSubmit().
Overrides AbstractSearchService::configurationFormSubmit
File
- src/
SearchService/ SearchApiSearchService.php, line 273
Class
- SearchApiSearchService
- Fast Autocomplete backend service class providing Search API search.
Namespace
Drupal\fac\SearchServiceCode
public function configurationFormSubmit(array $form, array &$values, array &$form_state) {
$settings = array(
'index_id' => $values['index_id'],
'number_of_results' => $values['number_of_results'],
'conjunction' => $values['conjunction'],
'bundles' => $values['bundles'],
);
if (isset($values['full_text_fields'])) {
$settings['full_text_fields'] = $values['full_text_fields'];
}
variable_set('fac_backend_service_settings', $settings);
}