function SystemManager::__construct
Same name in other branches
- 9 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.
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\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 81
Class
- SystemManager
- System Manager Service.
Namespace
Drupal\systemCode
public function __construct(ModuleHandlerInterface $module_handler, $entity_manager, 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.