You are here

public function OgMembershipInterface::revokeRole in Organic groups 8

Revokes a role from the OG membership.

Parameters

\Drupal\og\OgRoleInterface $role: The OG role.

Return value

\Drupal\og\OgMembershipInterface The updated OG Membership object.

1 method overrides OgMembershipInterface::revokeRole()
OgMembership::revokeRole in src/Entity/OgMembership.php
Revokes a role from the OG membership.

File

src/OgMembershipInterface.php, line 195

Class

OgMembershipInterface
Provides an interface for OG memberships.

Namespace

Drupal\og

Code

public function revokeRole(OgRoleInterface $role) : OgMembershipInterface;