public function ToolbarHandler::__construct in Devel 8.2
Same name and namespace in other branches
- 8.3 src/ToolbarHandler.php \Drupal\devel\ToolbarHandler::__construct()
- 8 src/ToolbarHandler.php \Drupal\devel\ToolbarHandler::__construct()
- 4.x src/ToolbarHandler.php \Drupal\devel\ToolbarHandler::__construct()
ToolbarHandler constructor.
Parameters
\Drupal\Core\Menu\MenuLinkTreeInterface $menu_link_tree: The menu link tree service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Session\AccountProxyInterface $account: The current user.
File
- src/
ToolbarHandler.php, line 53
Class
- ToolbarHandler
- Toolbar integration handler.
Namespace
Drupal\develCode
public function __construct(MenuLinkTreeInterface $menu_link_tree, ConfigFactoryInterface $config_factory, AccountProxyInterface $account) {
$this->menuLinkTree = $menu_link_tree;
$this->config = $config_factory
->get('devel.toolbar.settings');
$this->account = $account;
}