You are here

public function TeamRole::revokePermission in Apigee Edge 8

Revokes a permissions from the user role.

Parameters

string $permission: The permission to revoke.

Overrides TeamRoleInterface::revokePermission

File

modules/apigee_edge_teams/src/Entity/TeamRole.php, line 114

Class

TeamRole
Defines the Team Role entity.

Namespace

Drupal\apigee_edge_teams\Entity

Code

public function revokePermission($permission) : void {
  $this->permissions = array_diff($this->permissions, [
    $permission,
  ]);
}