You are here

public function ToolbarMenuPermissions::permissions in Toolbar Menu 8

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

Returns an array of toolbar_menu permissions.

Return value

array The permission list.

1 string reference to 'ToolbarMenuPermissions::permissions'
toolbar_menu.permissions.yml in ./toolbar_menu.permissions.yml
toolbar_menu.permissions.yml

File

src/ToolbarMenuPermissions.php, line 45

Class

ToolbarMenuPermissions
Provides dynamic permissions of the toolbar_menu module.

Namespace

Drupal\toolbar_menu

Code

public function permissions() {
  return $this->toolbarMenuManager
    ->getPermissionList();
}