public function QueryPreExecuteEvent::__construct in Search API 8
Same name in this branch
- 8 src/Event/QueryPreExecuteEvent.php \Drupal\search_api\Event\QueryPreExecuteEvent::__construct()
- 8 modules/search_api_db/src/Event/QueryPreExecuteEvent.php \Drupal\search_api_db\Event\QueryPreExecuteEvent::__construct()
Constructs a new class instance.
Parameters
\Drupal\Core\Database\Query\SelectInterface $db_query: The database query to be executed for the search.
\Drupal\search_api\Query\QueryInterface $query: The search query that is being executed.
File
- modules/
search_api_db/ src/ Event/ QueryPreExecuteEvent.php, line 36
Class
- QueryPreExecuteEvent
- Wraps a query pre-execute event.
Namespace
Drupal\search_api_db\EventCode
public function __construct(SelectInterface $db_query, QueryInterface $query) {
$this->dbQuery = $db_query;
$this->query = $query;
}