You are here

protected function Query::shouldAbort in Search API 8

Determines whether the query should be aborted.

Also prepares the result set if the query should be aborted.

Return value

bool TRUE if the query should be aborted, FALSE otherwise.

1 call to Query::shouldAbort()
Query::execute in src/Query/Query.php
Executes this search query.

File

src/Query/Query.php, line 555

Class

Query
Provides a standard implementation for a Search API query.

Namespace

Drupal\search_api\Query

Code

protected function shouldAbort() {
  if (!$this
    ->wasAborted() && $this->languages !== []) {
    return FALSE;
  }
  if (!$this->originalQuery) {
    $this->originalQuery = clone $this;
  }
  $this
    ->postExecute();
  return TRUE;
}