function SystemController::create

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

Overrides AutowireTrait::create

File

core/modules/system/src/Controller/SystemController.php, line 97

Class

SystemController
Returns responses for System routes.

Namespace

Drupal\system\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('system.manager'), $container->get('access_check.theme'), $container->get('form_builder'), $container->get('menu.link_tree'), $container->get('extension.list.module'), $container->get('extension.list.theme'));
}

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