public function SuggestionInterface::getLabel in Search API Autocomplete 8
Retrieves the label to use for the suggestion.
Should only be used if the other fields that will be displayed (suggestion prefix/suffix and user input) are empty.
Return value
string The suggestion's label.
1 method overrides SuggestionInterface::getLabel()
- Suggestion::getLabel in src/
Suggestion/ Suggestion.php - Retrieves the label to use for the suggestion.
File
- src/
Suggestion/ SuggestionInterface.php, line 54
Class
- SuggestionInterface
- Defines a single autocompletion suggestion.
Namespace
Drupal\search_api_autocomplete\SuggestionCode
public function getLabel();