You are here

public function SearchApiSearchService::configurationFormValidate in Fast Autocomplete 7

Implements SearchServiceInterface::configurationFormValidate().

Overrides AbstractSearchService::configurationFormValidate

File

src/SearchService/SearchApiSearchService.php, line 264

Class

SearchApiSearchService
Fast Autocomplete backend service class providing Search API search.

Namespace

Drupal\fac\SearchService

Code

public function configurationFormValidate(array $form, array &$values, array &$form_state) {
  if ($values['number_of_results'] < 1) {
    form_set_error('number_of_results', t('Please enter a maximum number of results of 1 or more.'));
  }
}