function 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 54
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;
}