You are here

public function SearchApiViewsQuery::abort in Search API 7

Aborts this search query.

Used by handlers to flag a fatal error which shouldn't be displayed but still lead to the view returning empty and the search not being executed.

Parameters

string|null $msg: Optionally, a translated, unescaped error message to display.

File

contrib/search_api_views/includes/query.inc, line 424
Contains SearchApiViewsQuery.

Class

SearchApiViewsQuery
Views query class using a Search API index as the data source.

Code

public function abort($msg = NULL) {
  if ($msg) {
    $this->errors[] = $msg;
  }
  $this->abort = TRUE;
}