public function SearchApiElasticsearchConnector::configurationFormValidate in Elasticsearch Connector 7
Same name and namespace in other branches
- 7.5 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::configurationFormValidate()
- 7.2 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::configurationFormValidate()
Overrides configurationFormValidate().
Overrides SearchApiAbstractService::configurationFormValidate
File
- modules/
elasticsearch_connector_search_api/ service.inc, line 124 - Provides a Elasticsearch-based service class for the Search API using Elasticsearch Connector module.
Class
- SearchApiElasticsearchConnector
- Search service class.
Code
public function configurationFormValidate(array $form, array &$values, array &$form_state) {
// Facet limit.
if (filter_var($values['facet_limit'], FILTER_VALIDATE_INT, array(
'options' => array(
'min_range' => 0,
),
)) === FALSE) {
form_set_error('options][form][facet_limit', t('You must enter a positive integer for the elasticsearch facet limit.'));
}
}