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\search_api\Query\QueryInterface $query: The created query.
File
- src/
Event/ QueryPreExecuteEvent.php, line 26
Class
- QueryPreExecuteEvent
- Wraps a query pre-execute event.
Namespace
Drupal\search_api\EventCode
public function __construct(QueryInterface $query) {
$this->query = $query;
}