You are here

public function ResultSetInterface::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

1 method overrides ResultSetInterface::setWarnings()
ResultSet::setWarnings in src/Query/ResultSet.php
Sets the warnings triggered by the search query.

File

src/Query/ResultSetInterface.php, line 110

Class

ResultSetInterface
Represents the result set of a search query.

Namespace

Drupal\search_api\Query

Code

public function setWarnings(array $warnings);