GroupContentMenuPermissionProvider.php in Group Content Menu 8
File
src/Plugin/GroupContentMenuPermissionProvider.php
View source
<?php
namespace Drupal\group_content_menu\Plugin;
use Drupal\group\Plugin\GroupContentPermissionProvider;
class GroupContentMenuPermissionProvider extends GroupContentPermissionProvider {
public function getPermission($operation, $target, $scope = 'any') {
return FALSE;
}
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;
}
}