function RoleInterface::revokePermission
Same name in other branches
- 9 core/modules/user/src/RoleInterface.php \Drupal\user\RoleInterface::revokePermission()
- 8.9.x core/modules/user/src/RoleInterface.php \Drupal\user\RoleInterface::revokePermission()
- 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\userCode
public function revokePermission($permission);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.