public function GroupMembership::getUser in Group 8
Same name and namespace in other branches
- 2.0.x src/GroupMembership.php \Drupal\group\GroupMembership::getUser()
Returns the user for the membership.
Return value
2 calls to GroupMembership::getUser()
- 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 65
Class
- GroupMembership
- Wrapper class for a GroupContent entity representing a membership.
Namespace
Drupal\groupCode
public function getUser() {
return $this->groupContent
->getEntity();
}