protected function SearchApiViewsHandlerArgumentDate::abort in Search API 7
Aborts the associated query due to an illegal argument.
1 call to SearchApiViewsHandlerArgumentDate::abort()
- SearchApiViewsHandlerArgumentDate::query in contrib/
search_api_views/ includes/ handler_argument_date.inc - Set up the query for this argument.
File
- contrib/
search_api_views/ includes/ handler_argument_date.inc, line 123 - Contains the SearchApiViewsHandlerArgumentDate class.
Class
- SearchApiViewsHandlerArgumentDate
- Defines a contextual filter searching for a date or date range.
Code
protected function abort() {
$variables['!field'] = $this->definition['group'] . ': ' . $this->definition['title'];
$this->query
->abort(t('Illegal argument passed to !field contextual filter.', $variables));
}