function SystemController::__construct

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

Constructs a new SystemController.

Parameters

\Drupal\system\SystemManager $systemManager: System manager service.

\Drupal\Core\Theme\ThemeAccessCheck $theme_access: The theme access checker service.

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Drupal\Core\Menu\MenuLinkTreeInterface $menu_link_tree: The menu link tree service.

\Drupal\Core\Extension\ModuleExtensionList $module_extension_list: The module extension list.

\Drupal\Core\Extension\ThemeExtensionList $theme_extension_list: The theme extension list.

File

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

Class

SystemController
Returns responses for System routes.

Namespace

Drupal\system\Controller

Code

public function __construct(SystemManager $systemManager, ThemeAccessCheck $theme_access, FormBuilderInterface $form_builder, MenuLinkTreeInterface $menu_link_tree, ModuleExtensionList $module_extension_list, ThemeExtensionList $theme_extension_list) {
    $this->systemManager = $systemManager;
    $this->themeAccess = $theme_access;
    $this->formBuilder = $form_builder;
    $this->menuLinkTree = $menu_link_tree;
    $this->moduleExtensionList = $module_extension_list;
    $this->themeExtensionList = $theme_extension_list;
}

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