public function Search::setOption in Search API Autocomplete 8
Sets an option.
Parameters
string $name: The name of an option.
mixed $option: The new option.
Return value
$this
Overrides SearchInterface::setOption
File
- src/
Entity/ Search.php, line 381
Class
- Search
- Describes the autocomplete settings for a certain search.
Namespace
Drupal\search_api_autocomplete\EntityCode
public function setOption($name, $option) {
$this->options[$name] = $option;
return $this;
}