eZ\Publish\Core\SignalSlot\ObjectStateService::deleteObjectState PHP Метод

deleteObjectState() публичный Метод

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)
    {
        $returnValue = $this->service->deleteObjectState($objectState);
        $this->signalDispatcher->emit(new DeleteObjectStateSignal(array('objectStateId' => $objectState->id)));
        return $returnValue;
    }