public function loadGroup($groupId)
    {
        $data = $this->objectStateGateway->loadObjectStateGroupData($groupId);

        if (empty($data)) {
            throw new NotFoundException('ObjectStateGroup', $groupId);
        }

        return $this->objectStateMapper->createObjectStateGroupFromData($data);
    }
public function loadGroup($groupId)
    {
        $data = $this->objectStateGateway->loadObjectStateGroupData($groupId);

        if (empty($data)) {
            throw new NotFoundException('ObjectStateGroup', $groupId);
        }

        return $this->objectStateMapper->createObjectStateGroupFromData($data);
    }
public function loadGroup ( $ groupId ) { $ data = $ this -> objectStateGateway -> loadObjectStateGroupData ( $ groupId ) ; if ( empty ( $ data ) ) { throw new NotFoundException ( 'ObjectStateGroup' , $ groupId ) ; } return $ this -> objectStateMapper -> createObjectStateGroupFromData ( $ data ) ; }
Loads an object state group.

@param mixed $groupId

@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException if the group was not found

@return \eZ\Publish\SPI\Persistence\Content\ObjectState\Group
Loads an object state group .