public function RoleInterface::revokePermission in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/src/RoleInterface.php \Drupal\user\RoleInterface::revokePermission()
- 9 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);