function RoleInterface::revokePermissions

Same name and namespace in other branches
  1. main core/modules/user/src/RoleInterface.php \Drupal\user\RoleInterface::revokePermissions()

Revokes permissions from the user role.

Parameters

array $permissions: The permissions to revoke.

Return value

$this

File

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

Class

RoleInterface
Provides an interface defining a user role entity.

Namespace

Drupal\user

Code

public function revokePermissions(array $permissions) : static;

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