You are here

public function ToolbarHandler::__construct in Devel 4.x

Same name and namespace in other branches
  1. 8.3 src/ToolbarHandler.php \Drupal\devel\ToolbarHandler::__construct()
  2. 8 src/ToolbarHandler.php \Drupal\devel\ToolbarHandler::__construct()
  3. 8.2 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 54

Class

ToolbarHandler
Toolbar integration handler.

Namespace

Drupal\devel

Code

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