ViewExecutable::getQuery

public 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 1139

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

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

  return $this->query;
}
doc_Drupal
2016-10-29 09:54:21
Comments
Leave a Comment

Please login to continue.