public function GroupRole::revokePermission in Group 8
Same name and namespace in other branches
- 2.0.x src/Entity/GroupRole.php \Drupal\group\Entity\GroupRole::revokePermission()
Revokes a permission from the role.
Parameters
string $permission: The permission to revoke.
Return value
\Drupal\group\Entity\GroupRoleInterface The group role this was called on.
Overrides GroupRoleInterface::revokePermission
File
- src/
Entity/ GroupRole.php, line 250
Class
- GroupRole
- Defines the Group role configuration entity.
Namespace
Drupal\group\EntityCode
public function revokePermission($permission) {
return $this
->revokePermissions([
$permission,
]);
}