getOptions() should be checked for settings, like * whether to try and estimate result counts for returned suggestions. * @param string $incomplete_key * The start of another fulltext keyword for the search, which should be * completed. Might be empty, in which case all user input up to now was * considered completed. Then, additional keywords for the search could be * suggested. * @param string $user_input * The complete user input for the fulltext search keywords so far. * * @return \Drupal\search_api_autocomplete\Suggestion\SuggestionInterface[] * An array of autocomplete suggestions. */ public function getAutocompleteSuggestions(QueryInterface $query, SearchInterface $search, $incomplete_key, $user_input); }