function BatchController::__construct

Same name in other branches
  1. 9 core/modules/system/src/Controller/BatchController.php \Drupal\system\Controller\BatchController::__construct()
  2. 8.9.x core/modules/system/src/Controller/BatchController.php \Drupal\system\Controller\BatchController::__construct()
  3. 11.x core/modules/system/src/Controller/BatchController.php \Drupal\system\Controller\BatchController::__construct()

Constructs a new BatchController.

File

core/modules/system/src/Controller/BatchController.php, line 23

Class

BatchController
Controller routines for batch routes.

Namespace

Drupal\system\Controller

Code

public function __construct(string $root, BatchStorageInterface $batchStorage) {
    require_once $this->root . '/core/includes/batch.inc';
}

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