function BatchController::create

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

Overrides ContainerInjectionInterface::create

File

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

Class

BatchController
Controller routines for batch routes.

Namespace

Drupal\system\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->getParameter('app.root'), $container->get('batch.storage'));
}

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