public function Role6::revoke_permissions

8.0.x Role6.php public Role6::revoke_permissions($perms_to_remove)
7.x Role6.php public Role6::revoke_permissions($perms_to_remove)

Overrides RoleBase::revoke_permissions

File

lib/Drush/Role/Role6.php, line 50

Namespace

Drush\Role

Class

Role6

Code

public function revoke_permissions($perms_to_remove) {
  $perms = $this->getPerms();
  $this->perms = array_diff($this->perms, $perms_to_remove);
  $this->updatePerms();
}