You are here

public function Index::setOption in Search API 8

Sets an option.

Parameters

string $name: The name of an option.

mixed $option: The new option.

Return value

$this

Overrides IndexInterface::setOption

File

src/Entity/Index.php, line 320

Class

Index
Defines the search index configuration entity.

Namespace

Drupal\search_api\Entity

Code

public function setOption($name, $option) {
  $this->options[$name] = $option;
  return $this;
}