You are here

public function Search::getSuggesterIds in Search API Autocomplete 8

Retrieves the IDs of all suggesters enabled for this search.

Return value

string[] The IDs of the suggester plugins used by this search.

Overrides SearchInterface::getSuggesterIds

File

src/Entity/Search.php, line 235

Class

Search
Describes the autocomplete settings for a certain search.

Namespace

Drupal\search_api_autocomplete\Entity

Code

public function getSuggesterIds() {
  if ($this->suggesterInstances !== NULL) {
    return array_keys($this->suggesterInstances);
  }
  return array_keys($this->suggester_settings);
}