You are here

public function GroupRole::revokePermission in Group 2.0.x

Same name and namespace in other branches
  1. 8 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\Entity

Code

public function revokePermission($permission) {
  return $this
    ->revokePermissions([
    $permission,
  ]);
}