public function Suggestion::getSuggestionPrefix in Search API Autocomplete 8
Retrieves the prefix suggested for the entered keys.
Return value
string|null The suggested prefix, if any.
Overrides SuggestionInterface::getSuggestionPrefix
1 call to Suggestion::getSuggestionPrefix()
- Suggestion::toRenderable in src/
Suggestion/ Suggestion.php - Returns a render array representation of the object.
File
- src/
Suggestion/ Suggestion.php, line 146
Class
- Suggestion
- Provides a value object meant to be used as result of suggestions.
Namespace
Drupal\search_api_autocomplete\SuggestionCode
public function getSuggestionPrefix() {
return $this->suggestionPrefix;
}