public function ToolbarMenuPermissions::__construct in Toolbar Menu 8
Same name and namespace in other branches
- 8.2 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_menuCode
public function __construct(ToolbarMenuManager $toolbar_menu) {
$this->toolbarMenuManager = $toolbar_menu;
}