You are here

protected function ViewExecutable::_preQuery in Views (for Drupal 7) 8.3

Run the preQuery() on all active handlers.

1 call to ViewExecutable::_preQuery()
ViewExecutable::build in lib/Drupal/views/ViewExecutable.php
Build the query for the view.

File

lib/Drupal/views/ViewExecutable.php, line 769
Definition of Drupal\views\ViewExecutable.

Class

ViewExecutable
An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.

Namespace

Drupal\views

Code

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