You are here

public function QueryPreExecuteEvent::setDbQuery in Search API 8

Sets the database query.

Parameters

\Drupal\Core\Database\Query\SelectInterface $dbQuery: The new database query.

Return value

$this

File

modules/search_api_db/src/Event/QueryPreExecuteEvent.php, line 61

Class

QueryPreExecuteEvent
Wraps a query pre-execute event.

Namespace

Drupal\search_api_db\Event

Code

public function setDbQuery(SelectInterface $dbQuery) {
  $this->dbQuery = $dbQuery;
  return $this;
}