eZ\Publish\Core\SignalSlot\ObjectStateService::setPriorityOfObjectState PHP Method

setPriorityOfObjectState() public method

Changes the priority of the state.
public setPriorityOfObjectState ( eZ\Publish\API\Repository\Values\ObjectState\ObjectState $objectState, integer $priority )
$objectState eZ\Publish\API\Repository\Values\ObjectState\ObjectState
$priority integer
    public function setPriorityOfObjectState(ObjectState $objectState, $priority)
    {
        $returnValue = $this->service->setPriorityOfObjectState($objectState, $priority);
        $this->signalDispatcher->emit(new SetPriorityOfObjectStateSignal(array('objectStateId' => $objectState->id, 'priority' => $priority)));
        return $returnValue;
    }