public function SearchInterface::getSuggester in Search API Autocomplete 8
Retrieves a specific suggester plugin for this search.
Parameters
string $suggester_id: The ID of the suggester plugin to return.
Return value
\Drupal\search_api_autocomplete\Suggester\SuggesterInterface The suggester plugin with the given ID.
Throws
\Drupal\search_api_autocomplete\SearchApiAutocompleteException Thrown if the specified suggester isn't enabled for this search, or couldn't be loaded.
1 method overrides SearchInterface::getSuggester()
- Search::getSuggester in src/
Entity/ Search.php - Retrieves a specific suggester plugin for this search.
File
- src/
SearchInterface.php, line 93
Class
- SearchInterface
- Describes the autocomplete settings for a certain search.
Namespace
Drupal\search_api_autocompleteCode
public function getSuggester($suggester_id);