You are here

public function UnsavedIndexConfiguration::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/UnsavedIndexConfiguration.php, line 225

Class

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

Namespace

Drupal\search_api

Code

public function setOption($name, $option) {
  $this->entity
    ->setOption($name, $option);
  return $this;
}