function SystemManager::__construct
Same name in other branches
- 8.9.x core/modules/system/src/SystemManager.php \Drupal\system\SystemManager::__construct()
- 10 core/modules/system/src/SystemManager.php \Drupal\system\SystemManager::__construct()
- 11.x core/modules/system/src/SystemManager.php \Drupal\system\SystemManager::__construct()
Constructs a SystemManager object.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree: The menu tree manager.
\Drupal\Core\Menu\MenuActiveTrailInterface $menu_active_trail: The active menu trail service.
File
-
core/
modules/ system/ src/ SystemManager.php, line 79
Class
- SystemManager
- System Manager Service.
Namespace
Drupal\systemCode
public function __construct(ModuleHandlerInterface $module_handler, RequestStack $request_stack, MenuLinkTreeInterface $menu_tree, MenuActiveTrailInterface $menu_active_trail) {
$this->moduleHandler = $module_handler;
$this->requestStack = $request_stack;
$this->menuTree = $menu_tree;
$this->menuActiveTrail = $menu_active_trail;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.