You are here

public function SearchInterface::addSuggester in Search API Autocomplete 8

Adds a suggester to this search.

An existing suggester with the same ID will be replaced.

Parameters

\Drupal\search_api_autocomplete\Suggester\SuggesterInterface $suggester: The suggester to be added.

Return value

$this

1 method overrides SearchInterface::addSuggester()
Search::addSuggester in src/Entity/Search.php
Adds a suggester to this search.

File

src/SearchInterface.php, line 105

Class

SearchInterface
Describes the autocomplete settings for a certain search.

Namespace

Drupal\search_api_autocomplete

Code

public function addSuggester(SuggesterInterface $suggester);