public function GroupContentPermissionProviderInterface::getPermission in Group 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.
1 method overrides GroupContentPermissionProviderInterface::getPermission()
- GroupContentPermissionProvider::getPermission in src/
Plugin/ GroupContentPermissionProvider.php - Gets the name of the permission for the given operation, target and scope.
File
- src/
Plugin/ GroupContentPermissionProviderInterface.php, line 132
Class
- GroupContentPermissionProviderInterface
- Provides a common interface for group content permission providers.
Namespace
Drupal\group\PluginCode
public function getPermission($operation, $target, $scope = 'any');