You are here

public function Suggestion::getPrefix in Search API Autocomplete 8

Retrieves the prefix for the suggestion.

For special kinds of suggestions, this will contain some kind of prefix describing them.

Return value

string|null The prefix, if set.

Overrides SuggestionInterface::getPrefix

1 call to Suggestion::getPrefix()
Suggestion::toRenderable in src/Suggestion/Suggestion.php
Returns a render array representation of the object.

File

src/Suggestion/Suggestion.php, line 132

Class

Suggestion
Provides a value object meant to be used as result of suggestions.

Namespace

Drupal\search_api_autocomplete\Suggestion

Code

public function getPrefix() {
  return $this->prefix;
}