You are here

public function SearchApiSpellcheck::addSuggestion in Search API Spellcheck 7

Add a suggestion object to the class which is stored and then checked when getSuggestion() is called.

Parameters

SearchApiSpellcheckSuggestion $suggestion: A suggestion instance to be stored and used by this service.

File

includes/SearchApiSpellcheck.inc, line 36
Spellcheck Service Interface and Class.

Class

SearchApiSpellcheck

Code

public function addSuggestion(SearchApiSpellcheckSuggestion $suggestion) {
  $this->suggestions[] = $suggestion;
}