You are here

public function ViewExecutable::initHandlers in Drupal 9

Same name and namespace in other branches
  1. 8 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 894

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;
  }
}