public function BasicTitleSearchService::configurationFormValidate in Fast Autocomplete 7
Implements SearchServiceInterface::configurationFormValidate().
Overrides AbstractSearchService::configurationFormValidate
File
- src/
SearchService/ BasicTitleSearchService.php, line 82
Class
- BasicTitleSearchService
- Fast Autocomplete backend service class for basic title search on nodes.
Namespace
Drupal\fac\SearchServiceCode
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.'));
}
}