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

loadGroup() public method

Loads an object state group.
public loadGroup ( mixed $groupId ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group
$groupId mixed
return eZ\Publish\SPI\Persistence\Content\ObjectState\Group
    public function loadGroup($groupId)
    {
        $data = $this->objectStateGateway->loadObjectStateGroupData($groupId);
        if (empty($data)) {
            throw new NotFoundException('ObjectStateGroup', $groupId);
        }
        return $this->objectStateMapper->createObjectStateGroupFromData($data);
    }