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