You are here

public function GroupContentPermissionProvider::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 GroupContentPermissionProviderInterface::getRelationUpdatePermission

3 calls to GroupContentPermissionProvider::getRelationUpdatePermission()
GroupContentPermissionProvider::buildPermissions in src/Plugin/GroupContentPermissionProvider.php
Provides a list of group permissions the plugin exposes.
GroupContentPermissionProvider::getPermission in src/Plugin/GroupContentPermissionProvider.php
Gets the name of the permission for the given operation, target and scope.
GroupMembershipPermissionProvider::getRelationUpdatePermission in src/Plugin/GroupMembershipPermissionProvider.php
Gets the name of the update permission for the relation.
1 method overrides GroupContentPermissionProvider::getRelationUpdatePermission()
GroupMembershipPermissionProvider::getRelationUpdatePermission in src/Plugin/GroupMembershipPermissionProvider.php
Gets the name of the update permission for the relation.

File

src/Plugin/GroupContentPermissionProvider.php, line 82

Class

GroupContentPermissionProvider
Provides group permissions for GroupContent entities.

Namespace

Drupal\group\Plugin

Code

public function getRelationUpdatePermission($scope = 'any') {
  return "update {$scope} {$this->pluginId} content";
}