public function ResultSet::addWarning in Search API 8
Adds a warning message that was triggered by the search query.
Parameters
string $warning: A translated, sanitized warning message that may be displayed to the user.
Return value
$this
Overrides ResultSetInterface::addWarning
File
- src/
Query/ ResultSet.php, line 145
Class
- ResultSet
- Represents the result set of a search query.
Namespace
Drupal\search_api\QueryCode
public function addWarning($warning) {
$this->warnings[] = $warning;
return $this;
}