You are here

public function ResultSet::setWarnings in Search API 8

Sets the warnings triggered by the search query.

Parameters

string[] $warnings: An array of translated, sanitized warning messages that may be displayed to the user.

Return value

$this

Overrides ResultSetInterface::setWarnings

File

src/Query/ResultSet.php, line 153

Class

ResultSet
Represents the result set of a search query.

Namespace

Drupal\search_api\Query

Code

public function setWarnings(array $warnings) {
  $this->warnings = $warnings;
  return $this;
}