eZ\Publish\Core\Persistence\Legacy\User\Handler::loadRoleAssignmentsByGroupId PHP Method

loadRoleAssignmentsByGroupId() public method

Role Assignments with same roleId and limitationIdentifier will be merged together into one.
public loadRoleAssignmentsByGroupId ( mixed $groupId, boolean $inherit = false ) : eZ\Publish\SPI\Persistence\User\RoleAssignment[]
$groupId mixed In legacy storage engine this is the content object id roles are assigned to in ezuser_role. By the nature of legacy this can currently also be used to get by $userId.
$inherit boolean If true also return inherited role assignments from user groups.
return eZ\Publish\SPI\Persistence\User\RoleAssignment[]
    public function loadRoleAssignmentsByGroupId($groupId, $inherit = false)
    {
        $data = $this->roleGateway->loadRoleAssignmentsByGroupId($groupId, $inherit);
        if (empty($data)) {
            return array();
        }
        return $this->mapper->mapRoleAssignments($data);
    }