You are here

public function GroupMembershipPermissionProvider::getRelationUpdatePermission in Group 8

Gets the name of the update permission for the relation.

Parameters

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::getRelationUpdatePermission

File

src/Plugin/GroupMembershipPermissionProvider.php, line 13

Class

GroupMembershipPermissionProvider
Provides group permissions for group_membership GroupContent entities.

Namespace

Drupal\group\Plugin

Code

public function getRelationUpdatePermission($scope = 'any') {

  // Update any is handled by the admin permission.
  if ($scope === 'own') {
    return parent::getRelationUpdatePermission($scope);
  }
  return FALSE;
}