You are here

public function ViewsQueryAlterEvent::getQuery in Hook Event Dispatcher 3.x

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

Get the query.

Return value

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

File

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

Class

ViewsQueryAlterEvent
Class ViewsQueryAlterEvent.

Namespace

Drupal\views_event_dispatcher\Event\Views

Code

public function getQuery() : QueryPluginBase {
  return $this->query;
}