function RoleInterface::revokePermission

Same name in other branches
  1. 8.9.x core/modules/user/src/RoleInterface.php \Drupal\user\RoleInterface::revokePermission()
  2. 10 core/modules/user/src/RoleInterface.php \Drupal\user\RoleInterface::revokePermission()
  3. 11.x core/modules/user/src/RoleInterface.php \Drupal\user\RoleInterface::revokePermission()

Revokes a permissions from the user role.

Parameters

string $permission: The permission to revoke.

Return value

$this

1 method overrides RoleInterface::revokePermission()
Role::revokePermission in core/modules/user/src/Entity/Role.php
Revokes a permissions from the user role.

File

core/modules/user/src/RoleInterface.php, line 62

Class

RoleInterface
Provides an interface defining a user role entity.

Namespace

Drupal\user

Code

public function revokePermission($permission);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.