You are here

public function UserInterface::removeRole in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::removeRole()

Remove a role from a user.

Parameters

string $rid: The role ID to remove.

1 method overrides UserInterface::removeRole()
User::removeRole in core/modules/user/src/Entity/User.php
Remove a role from a user.

File

core/modules/user/src/UserInterface.php, line 46
Contains \Drupal\user\UserInterface.

Class

UserInterface
Provides an interface defining a user entity.

Namespace

Drupal\user

Code

public function removeRole($rid);