Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewExecutable.php

function ViewExecutable::getQuery

Gets the current query plugin.

Return value

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

File

core/modules/views/src/ViewExecutable.php, line 1212

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public function getQuery() {
    if (!isset($this->query)) {
        $this->initQuery();
    }
    return $this->query;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal