You are here

public function Index::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()

1 call to Index::getOption()
Index::trackItemsInsertedOrUpdated in src/Entity/Index.php
Tracks insertion or updating of items.

File

src/Entity/Index.php, line 306

Class

Index
Defines the search index configuration entity.

Namespace

Drupal\search_api\Entity

Code

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