public function ApachesolrSearchService::configurationFormValidate in Fast Autocomplete 7
Implements SearchServiceInterface::configurationFormValidate().
Overrides AbstractSearchService::configurationFormValidate
File
- src/
SearchService/ ApachesolrSearchService.php, line 69
Class
- ApachesolrSearchService
- Fast Autocomplete backend service class providing Apachesolr search.
Namespace
Drupal\fac\SearchServiceCode
public function configurationFormValidate(array $form, array &$values, array &$form_state) {
if ($values['number_of_results'] > 10) {
form_set_error('number_of_results', t('Apachesolr search is limited to a maximum of 10 results.'));
}
if ($values['number_of_results'] < 1) {
form_set_error('number_of_results', t('Please enter a maximum number of results of 1 or more.'));
}
}