You are here

public function SearchApiQuery::filter in Search API 7

Adds a subfilter to this query's filter.

Parameters

SearchApiQueryFilterInterface $filter: A SearchApiQueryFilter object that should be added as a subfilter.

Return value

SearchApiQueryInterface The called object.

Overrides SearchApiQueryInterface::filter

1 call to SearchApiQuery::filter()
SearchApiQuery::addLanguages in includes/query.inc
Adds language filters for the query.

File

includes/query.inc, line 581
Contains SearchApiQueryInterface and SearchApiQuery.

Class

SearchApiQuery
Provides a standard implementation of the SearchApiQueryInterface.

Code

public function filter(SearchApiQueryFilterInterface $filter) {
  $this->filter
    ->filter($filter);
  return $this;
}