public function Suggestion::setPrefix in Search API Autocomplete 8
Sets the prefix.
Parameters
string|null $prefix: The prefix.
Return value
$this
Overrides SuggestionInterface::setPrefix
File
- src/
Suggestion/ Suggestion.php, line 197
Class
- Suggestion
- Provides a value object meant to be used as result of suggestions.
Namespace
Drupal\search_api_autocomplete\SuggestionCode
public function setPrefix($prefix) {
$this->prefix = $prefix;
return $this;
}