You are here

public function ToolbarMenuPermissions::__construct in Toolbar Menu 8.2

Same name and namespace in other branches
  1. 8 src/ToolbarMenuPermissions.php \Drupal\toolbar_menu\ToolbarMenuPermissions::__construct()

Constructs a new ToolbarMenuPermissions instance.

Parameters

\Drupal\toolbar_menu\ToolbarMenuManager $toolbar_menu: The toolbar menu manager.

File

src/ToolbarMenuPermissions.php, line 26

Class

ToolbarMenuPermissions
Provides dynamic permissions of the toolbar_menu module.

Namespace

Drupal\toolbar_menu

Code

public function __construct(ToolbarMenuManager $toolbar_menu) {
  $this->toolbarMenuManager = $toolbar_menu;
}