You are here

public function SearchApiSpellcheck::addSpellcheck in Search API Spellcheck 7

This call also maintains a list of sub interances using the same interface. These services are then also check when getSuggestion() is called.

Parameters

SearchApiSpellcheck $spellcheck: A service which should also be queried for spelling suggestions.

File

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

Class

SearchApiSpellcheck

Code

public function addSpellcheck(SearchApiSpellcheckInterface $spellcheck) {
  $this->spellchecks[] = $spellcheck;
}