You are here

public function TeamRoleStorageInterface::changePermissions in Apigee Edge 8

Changes permissions of a team role.

This function can be used to grant and revoke multiple permissions at once.

Based on user_role_change_permissions().

Parameters

string $role_name: The ID of a team role.

array $permissions: An associative array, where the key holds the team permission name and the value determines whether to grant or revoke that permission. Any value that evaluates to TRUE will cause the team permission to be granted. Any value that evaluates to FALSE will cause the team permission to be revoked. Existing team permissions are not changed, unless specified in $permissions.

1 method overrides TeamRoleStorageInterface::changePermissions()
TeamRoleStorage::changePermissions in modules/apigee_edge_teams/src/Entity/Storage/TeamRoleStorage.php

File

modules/apigee_edge_teams/src/Entity/Storage/TeamRoleStorageInterface.php, line 47

Class

TeamRoleStorageInterface
Storage definition for team role entity.

Namespace

Drupal\apigee_edge_teams\Entity\Storage

Code

public function changePermissions(string $role_name, array $permissions) : void;