public function ResultSetInterface::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
1 method overrides ResultSetInterface::addWarning()
- ResultSet::addWarning in src/
Query/ ResultSet.php - Adds a warning message that was triggered by the search query.
File
- src/
Query/ ResultSetInterface.php, line 99
Class
- ResultSetInterface
- Represents the result set of a search query.
Namespace
Drupal\search_api\QueryCode
public function addWarning($warning);