You are here

public function SearchApiMultiQuery::getOption in Search API Multi-Index Searches 7

Retrieves a single option.

Parameters

string $name: The name of an option.

mixed $default: The default in case the option isn't set.

Return value

mixed The value of the option with the specified name, if set; $default otherwise.

Overrides SearchApiMultiQueryInterface::getOption

2 calls to SearchApiMultiQuery::getOption()
SearchApiMultiQuery::searchMultiple in ./search_api_multi.query.inc
Searches multiple indexes with this query.
SearchApiMultiQuery::setOption in ./search_api_multi.query.inc
Sets an option.

File

./search_api_multi.query.inc, line 1134

Class

SearchApiMultiQuery
Standard implementation of SearchApiMultiQueryInterface.

Code

public function getOption($name, $default = NULL) {
  return isset($this->options[$name]) ? $this->options[$name] : $default;
}