abstract protected function SearchApiViewsHandlerFilterEntity::validate_entity_strings in Search API 7
Validates entered entity labels and converts them to entity IDs.
Since this can come from either the form or the exposed filter, this is abstracted out a bit so it can handle the multiple input sources.
Parameters
array $form: The form or form element for which any errors should be set.
array $values: The entered user names to validate.
Return value
array The entity IDs corresponding to all entities that could be found.
2 calls to SearchApiViewsHandlerFilterEntity::validate_entity_strings()
- SearchApiViewsHandlerFilterEntity::exposed_validate in contrib/
search_api_views/ includes/ handler_filter_entity.inc - Validate the exposed handler form.
- SearchApiViewsHandlerFilterEntity::value_validate in contrib/
search_api_views/ includes/ handler_filter_entity.inc - Validate the options form.
2 methods override SearchApiViewsHandlerFilterEntity::validate_entity_strings()
- SearchApiViewsHandlerFilterTaxonomyTerm::validate_entity_strings in contrib/
search_api_views/ includes/ handler_filter_taxonomy_term.inc - Validates entered entity labels and converts them to entity IDs.
- SearchApiViewsHandlerFilterUser::validate_entity_strings in contrib/
search_api_views/ includes/ handler_filter_user.inc - Validates entered entity labels and converts them to entity IDs.
File
- contrib/
search_api_views/ includes/ handler_filter_entity.inc, line 39 - Contains SearchApiViewsHandlerFilterEntity.
Class
- SearchApiViewsHandlerFilterEntity
- Views filter handler class for entities.
Code
protected abstract function validate_entity_strings(array &$form, array $values);