public function UserBCDecorator::removeRole

Remove a role from a user.

Parameters

string $rid: The role ID to remove.

Overrides UserInterface::removeRole

File

drupal/core/modules/user/lib/Drupal/user/UserBCDecorator.php, line 75
Contains \Drupal\user\UserBCDecorator.

Class

UserBCDecorator
Defines the user specific entity BC decorator.

Namespace

Drupal\user

Code

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