You are here

public function SearchApiElasticsearchAbstractService::configurationFormSubmit in Search API Elasticsearch 7

Overrides configurationFormSubmit().

Overrides SearchApiAbstractService::configurationFormSubmit

File

includes/SearchApiElasticsearchAbstractService.inc, line 381
Provides a Elasticsearch-based service class for the Search API.

Class

SearchApiElasticsearchAbstractService
Elasticsearch service abstract class.

Code

public function configurationFormSubmit(array $form, array &$values, array &$form_state) {
  $aggregation_limit = '';
  if (isset($values['facet_limit'])) {
    $aggregation_limit = $values['facet_limit'];
    unset($values['facet_limit']);
  }
  $values = array_values($values);
  $values['facet_limit'] = $aggregation_limit;
  $this->options = $values;
}