You are here

public function SearchApiAutocompleteSearch::supportsAutocompletion in Search API Autocomplete 7

Determines whether autocompletion is currently supported for this search.

Return value

bool TRUE if autocompletion is possible for this search with the current settings; FALSE otherwise.

File

./search_api_autocomplete.entity.php, line 170
Contains SearchApiAutocompleteSearch.

Class

SearchApiAutocompleteSearch
Describes the autocomplete settings for a certain search.

Code

public function supportsAutocompletion() {
  return $this
    ->index() && $this
    ->getSuggester() && $this
    ->getSuggester()
    ->supportsIndex($this
    ->index());
}