search_api-8.x-1.15/src/Event/QueryPreExecuteEvent.php
src/Event/QueryPreExecuteEvent.php
<?php namespace Drupal\search_api\Event; use Drupal\search_api\Query\QueryInterface; use Symfony\Component\EventDispatcher\Event; /** * Wraps a query pre-execute event. */ final class QueryPreExecuteEvent extends Event { /** * The created query. * * @var \Drupal\search_api\Query\QueryInterface */ protected $query; /** * Constructs a new class instance. * * @param \Drupal\search_api\Query\QueryInterface $query * The created query. */ public function __construct(QueryInterface $query) { $this->query = $query; } /** * Retrieves the created query. * * @return \Drupal\search_api\Query\QueryInterface * The created query. */ public function getQuery() { return $this->query; } }