You are here

public function UnsavedIndexConfiguration::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.

Overrides IndexInterface::getOption

See also

getOptions()

File

src/UnsavedIndexConfiguration.php, line 211

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public function getOption($name, $default = NULL) {
  return $this->entity
    ->getOption($name, $default);
}