public function SearchApiQueryFilter::filter in Search API 7
Adds a subfilter.
Parameters
SearchApiQueryFilterInterface $filter: A SearchApiQueryFilterInterface object that should be added as a subfilter.
Return value
SearchApiQueryFilterInterface The called object.
Overrides SearchApiQueryFilterInterface::filter
File
- includes/
query.inc, line 1036 - Contains SearchApiQueryInterface and SearchApiQuery.
Class
- SearchApiQueryFilter
- Provides a standard implementation of SearchApiQueryFilterInterface.
Code
public function filter(SearchApiQueryFilterInterface $filter) {
$this->filters[] = $filter;
return $this;
}