public function OgMembershipInterface::revokeRoleById in Organic groups 8
Revokes a role from the OG membership.
Parameters
string $role_id: The OG role ID.
Return value
\Drupal\og\OgMembershipInterface The updated OG Membership object.
1 method overrides OgMembershipInterface::revokeRoleById()
- OgMembership::revokeRoleById in src/
Entity/ OgMembership.php - Revokes a role from the OG membership.
File
- src/
OgMembershipInterface.php, line 206
Class
- OgMembershipInterface
- Provides an interface for OG memberships.
Namespace
Drupal\ogCode
public function revokeRoleById(string $role_id) : OgMembershipInterface;