You are here

public function SearchApiViewsQuery::setOption in Search API 7

1 call to SearchApiViewsQuery::setOption()
SearchApiViewsQuery::add_orderby in contrib/search_api_views/includes/query.inc
Provides a sorting method as present in the Views default query plugin.

File

contrib/search_api_views/includes/query.inc, line 736
Contains SearchApiViewsQuery.

Class

SearchApiViewsQuery
Views query class using a Search API index as the data source.

Code

public function setOption($name, $value) {
  if (!$this->errors) {
    return $this->query
      ->setOption($name, $value);
  }
  return NULL;
}