public function GroupContentMenuPermissionProvider::buildPermissions in Group Content Menu 8
Provides a list of group permissions the plugin exposes.
If you have some group permissions that would only make sense when your plugin is installed, you may define those here. They will not be shown on the permission configuration form unless the plugin is installed.
Return value
array An array of group permissions, see GroupPermissionHandlerInterface for the structure of a group permission.
Overrides GroupContentPermissionProvider::buildPermissions
See also
GroupPermissionHandlerInterface::getPermissions()
File
- src/
Plugin/ GroupContentMenuPermissionProvider.php, line 24
Class
- GroupContentMenuPermissionProvider
- Provide group permissions for group_content_menu entities.
Namespace
Drupal\group_content_menu\PluginCode
public function buildPermissions() {
$permissions = [];
$permissions['access group content menu overview'] = $this
->buildPermission('Access group content menu overview', 'Access the overview of all menus');
$permissions['manage group_content_menu'] = $this
->buildPermission('Manage menus', 'Create, update and delete menus');
return $permissions;
}