You are here

public function SearchApiQuery::shouldAbort in Search API 8

Checks whether this query should be aborted.

Return value

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

See also

SearchApiQuery::abort()

22 calls to SearchApiQuery::shouldAbort()
SearchApiQuery::addCondition in src/Plugin/views/query/SearchApiQuery.php
Adds a new ($field $operator $value) condition filter.
SearchApiQuery::addConditionGroup in src/Plugin/views/query/SearchApiQuery.php
Adds a nested condition group.
SearchApiQuery::addWhere in src/Plugin/views/query/SearchApiQuery.php
Adds a simple condition to the query.
SearchApiQuery::build in src/Plugin/views/query/SearchApiQuery.php
Builds the necessary info to execute the query.
SearchApiQuery::createConditionGroup in src/Plugin/views/query/SearchApiQuery.php
Creates a new condition group to use with this query object.

... See full list

File

src/Plugin/views/query/SearchApiQuery.php, line 635

Class

SearchApiQuery
Defines a Views query class for searching on Search API indexes.

Namespace

Drupal\search_api\Plugin\views\query

Code

public function shouldAbort() {
  return $this->abort || !$this->query || $this->query
    ->wasAborted();
}