You are here

public function OgMembershipInterface::getGroup in Organic groups 8

Gets the group associated with the membership.

Return value

\Drupal\Core\Entity\ContentEntityInterface|null The group object which is referenced by the membership, or NULL if the group no longer exists in the entity storage. This can happen when the cleanup of orphaned memberships is configured to be handled in a cron job or batch process.

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

File

src/OgMembershipInterface.php, line 105

Class

OgMembershipInterface
Provides an interface for OG memberships.

Namespace

Drupal\og

Code

public function getGroup() : ?ContentEntityInterface;