public function UserSingleBase::removeRole

8.0.x UserSingleBase.php public UserSingleBase::removeRole($rid)
7.x UserSingleBase.php public UserSingleBase::removeRole($rid)
master UserSingleBase.php public UserSingleBase::removeRole($rid)

Remove a role from the current user.

Parameters

$rid: A role ID.

1 method overrides UserSingleBase::removeRole()
UserSingle7::removeRole in lib/Drush/User/UserSingle7.php
Remove a role from the current user.

File

lib/Drush/User/UserSingleBase.php, line 73

Namespace

Drush\User

Class

UserSingleBase

Code

public function removeRole($rid) {
  $this->account->removeRole($rid);
  $this->account->save();
}