You are here

public function SearchApiQuery::getFilter in Search API 8

Retrieves the filter object associated with this search query.

Return value

\Drupal\search_api\Query\ConditionGroupInterface This object's associated filter object.

See also

\Drupal\search_api\Query\QueryInterface::getConditionGroup()

File

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

Class

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

Namespace

Drupal\search_api\Plugin\views\query

Code

public function getFilter() {
  if (!$this
    ->shouldAbort()) {
    return $this->query
      ->getConditionGroup();
  }
  return NULL;
}