You are here

public function IndexInterface::getOption in Search API 8

Retrieves an option.

Parameters

string $name: The name of an option.

mixed $default: The value return if the option wasn't set.

Return value

mixed The value of the option.

See also

getOptions()

2 methods override IndexInterface::getOption()
Index::getOption in src/Entity/Index.php
Retrieves an option.
UnsavedIndexConfiguration::getOption in src/UnsavedIndexConfiguration.php
Retrieves an option.

File

src/IndexInterface.php, line 75

Class

IndexInterface
Defines the interface for index entities.

Namespace

Drupal\search_api

Code

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