function ViewExecutable::_preQuery

Same name and namespace in other branches
  1. 9 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::_preQuery()
  2. 8.9.x core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::_preQuery()
  3. 11.x core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::_preQuery()

Runs the preQuery() on all active handlers.

1 call to ViewExecutable::_preQuery()
ViewExecutable::build in core/modules/views/src/ViewExecutable.php
Builds the query for the view.

File

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

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

protected function _preQuery() {
    foreach ($this::getHandlerTypes() as $key => $info) {
        $handlers =& $this->{$key};
        $position = 0;
        foreach ($handlers as $id => $handler) {
            $handlers[$id]->position = $position;
            $handlers[$id]->preQuery();
            $position++;
        }
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.