public function ViewsQueryAlterEvent::__construct in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 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\ViewsCode
public function __construct(ViewExecutable $view, QueryPluginBase $query) {
parent::__construct($view);
$this->query = $query;
}