You are here

public function GroupMembership::getGroup in Group 8

Same name and namespace in other branches
  1. 2.0.x src/GroupMembership.php \Drupal\group\GroupMembership::getGroup()

Returns the group for the membership.

Return value

\Drupal\group\Entity\GroupInterface

2 calls to GroupMembership::getGroup()
GroupMembership::getRoles in src/GroupMembership.php
Returns the group roles for the membership.
GroupMembership::hasPermission in src/GroupMembership.php
Checks whether the member has a permission.

File

src/GroupMembership.php, line 56

Class

GroupMembership
Wrapper class for a GroupContent entity representing a membership.

Namespace

Drupal\group

Code

public function getGroup() {
  return $this->groupContent
    ->getGroup();
}