SystemManager::__construct

public SystemManager::__construct(ModuleHandlerInterface $module_handler, EntityManagerInterface $entity_manager, RequestStack $request_stack, MenuLinkTreeInterface $menu_tree, MenuActiveTrailInterface $menu_active_trail)

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 82

Class

SystemManager
System Manager Service.

Namespace

Drupal\system

Code

public function __construct(ModuleHandlerInterface $module_handler, EntityManagerInterface $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;
}
doc_Drupal
2016-10-29 09:45:49
Comments
Leave a Comment

Please login to continue.