You are here

public function Suggestion::setSuggestionPrefix in Search API Autocomplete 8

Sets the suggestion prefix.

Parameters

string|null $suggestion_prefix: The suggestion prefix.

Return value

$this

Overrides SuggestionInterface::setSuggestionPrefix

File

src/Suggestion/Suggestion.php, line 213

Class

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

Namespace

Drupal\search_api_autocomplete\Suggestion

Code

public function setSuggestionPrefix($suggestion_prefix) {
  $this->suggestionPrefix = $suggestion_prefix;
  return $this;
}