You are here

public function Suggestion::setResultsCount in Search API Autocomplete 8

Sets the result count.

Parameters

string|null $results: The result count.

Return value

$this

Overrides SuggestionInterface::setResultsCount

File

src/Suggestion/Suggestion.php, line 237

Class

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

Namespace

Drupal\search_api_autocomplete\Suggestion

Code

public function setResultsCount($results) {
  $this->resultsCount = $results;
  return $this;
}