protected function ViewExecutable::_preQuery

Run the preQuery() on all active handlers.

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

File

drupal/core/modules/views/lib/Drupal/views/ViewExecutable.php, line 792
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++;
    }
  }
}