function ViewExecutable::initHandlers

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

Acquires and attaches all of the handlers.

3 calls to ViewExecutable::initHandlers()
ViewExecutable::build in core/modules/views/src/ViewExecutable.php
Builds the query for the view.
ViewExecutable::buildTitle in core/modules/views/src/ViewExecutable.php
Forces the view to build a title.
ViewExecutable::__wakeup in core/modules/views/src/ViewExecutable.php
Magic method implementation to unserialize the view executable.

File

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

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public function initHandlers() {
    $this->initDisplay();
    if (empty($this->inited)) {
        foreach ($this::getHandlerTypes() as $key => $info) {
            $this->_initHandler($key, $info);
        }
        $this->inited = TRUE;
    }
}

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