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