public function RoleInterface::revokePermission in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 67 - Contains \Drupal\user\RoleInterface.
Class
- RoleInterface
- Provides an interface defining a user role entity.
Namespace
Drupal\userCode
public function revokePermission($permission);