eZ\Publish\Core\REST\Client\ObjectStateService::loadObjectState PHP Method

loadObjectState() public method

Loads an object state.
public loadObjectState ( mixed $stateId ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectState
$stateId mixed
return eZ\Publish\API\Repository\Values\ObjectState\ObjectState
    public function loadObjectState($stateId)
    {
        $response = $this->client->request('GET', $stateId, new Message(array('Accept' => $this->outputVisitor->getMediaType('ObjectState'))));
        return $this->inputDispatcher->parse($response);
    }