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

deleteObjectState() public method

Deletes a object state. The state of the content objects is reset to the first object state in the group.
public deleteObjectState ( eZ\Publish\API\Repository\Values\ObjectState\ObjectState $objectState )
$objectState eZ\Publish\API\Repository\Values\ObjectState\ObjectState
    public function deleteObjectState(ObjectState $objectState)
    {
        $response = $this->client->request('DELETE', $objectState->id, new Message(array('Accept' => $this->outputVisitor->getMediaType('ObjectState'))));
        if (!empty($response->body)) {
            $this->inputDispatcher->parse($response);
        }
    }