eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler::loadGroup PHP Method

loadGroup() public method

public loadGroup ( mixed $groupId ) : eZ\Publish\SPI\Persistence\Content\Type\Group
$groupId mixed
return eZ\Publish\SPI\Persistence\Content\Type\Group
    public function loadGroup($groupId)
    {
        $groups = $this->mapper->extractGroupsFromRows($this->contentTypeGateway->loadGroupData($groupId));
        if (count($groups) !== 1) {
            throw new Exception\TypeGroupNotFound($groupId);
        }
        return $groups[0];
    }