You are here

public function GroupMembership::getRoles in Group 7

Get all roles for a group membership.

Return value

array An array of GroupRole entities.

1 call to GroupMembership::getRoles()
GroupMembership::getPermissions in classes/group_membership.inc
Get all permissions for a group membership.

File

classes/group_membership.inc, line 125
Defines the Entity API class for group memberships.

Class

GroupMembership
Main class for group memberships.

Code

public function getRoles() {
  return group_roles($this->roles);
}