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

load() public method

Loads an object state.
public load ( mixed $stateId ) : eZ\Publish\SPI\Persistence\Content\ObjectState
$stateId mixed
return eZ\Publish\SPI\Persistence\Content\ObjectState
    public function load($stateId)
    {
        $data = $this->objectStateGateway->loadObjectStateData($stateId);
        if (empty($data)) {
            throw new NotFoundException('ObjectState', $stateId);
        }
        return $this->objectStateMapper->createObjectStateFromData($data);
    }