You are here

public function ViewsQueryAlterEvent::__construct in Hook Event Dispatcher 8

ViewsPreExecuteEevent constructor.

Parameters

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

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

Overrides BaseViewsEvent::__construct

File

src/Event/Views/ViewsQueryAlterEvent.php, line 31

Class

ViewsQueryAlterEvent
Class ViewsQueryAlterEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Views

Code

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