You are here

public function Suggestion::setSuggestedKeys in Search API Autocomplete 8

Sets the keys.

Parameters

string|null $keys: The keys.

Return value

$this

Overrides SuggestionInterface::setSuggestedKeys

File

src/Suggestion/Suggestion.php, line 181

Class

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

Namespace

Drupal\search_api_autocomplete\Suggestion

Code

public function setSuggestedKeys($suggestedKeys) {
  $this->suggestedKeys = $suggestedKeys;
  return $this;
}