You are here

public function ViewsQueryAlterEvent::__construct in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/views_event_dispatcher/src/Event/Views/ViewsQueryAlterEvent.php \Drupal\views_event_dispatcher\Event\Views\ViewsQueryAlterEvent::__construct()

ViewsPreExecuteEevent constructor.

Parameters

\Drupal\views\ViewExecutable $view: The view.

\Drupal\views\Plugin\views\query\QueryPluginBase $query: The query.

Overrides AbstractViewsEvent::__construct

File

modules/views_event_dispatcher/src/Event/Views/ViewsQueryAlterEvent.php, line 29

Class

ViewsQueryAlterEvent
Class ViewsQueryAlterEvent.

Namespace

Drupal\views_event_dispatcher\Event\Views

Code

public function __construct(ViewExecutable $view, QueryPluginBase $query) {
  parent::__construct($view);
  $this->query = $query;
}