function ViewExecutable::getQuery
Same name in other branches
- 9 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::getQuery()
- 8.9.x core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::getQuery()
- 11.x core/modules/views/src/ViewExecutable.php \Drupal\views\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\viewsCode
public function getQuery() {
if (!isset($this->query)) {
$this->initQuery();
}
return $this->query;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.