You are here

public function OgMembershipInterface::setGroup in Organic groups 8

Sets the group associated with the membership.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $group: The entity object.

Return value

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

1 method overrides OgMembershipInterface::setGroup()
OgMembership::setGroup in src/Entity/OgMembership.php
Sets the group associated with the membership.

File

src/OgMembershipInterface.php, line 94

Class

OgMembershipInterface
Provides an interface for OG memberships.

Namespace

Drupal\og

Code

public function setGroup(ContentEntityInterface $group) : OgMembershipInterface;