You are here

public function QueryInterface::getOption in Search API 8

Retrieves an option set on this search query.

Parameters

string $name: The name of the option.

mixed $default: (optional) The value to return if the specified option is not set.

Return value

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

1 method overrides QueryInterface::getOption()
Query::getOption in src/Query/Query.php
Retrieves an option set on this search query.

File

src/Query/QueryInterface.php, line 415

Class

QueryInterface
Represents a search query on a Search API index.

Namespace

Drupal\search_api\Query

Code

public function getOption($name, $default = NULL);