You are here

public function GroupContentMenuPermissionProvider::getPermission in Group Content Menu 8

Gets the name of the permission for the given operation, target and scope.

Parameters

string $operation: The permission operation. Usually "create", "view", "update" or "delete".

string $target: The target of the operation. Can be 'relation' or 'entity'.

string $scope: (optional) Whether the 'any' or 'own' permission name should be returned. Defaults to 'any'.

Return value

string|false The permission name or FALSE if it does not apply.

Overrides GroupContentPermissionProvider::getPermission

File

src/Plugin/GroupContentMenuPermissionProvider.php, line 15

Class

GroupContentMenuPermissionProvider
Provide group permissions for group_content_menu entities.

Namespace

Drupal\group_content_menu\Plugin

Code

public function getPermission($operation, $target, $scope = 'any') {

  // Group Content Menus don't operate like normal group content so these
  // permissions don't apply. Instead we use a high-level "Manage menus" perm.
  return FALSE;
}