/** * Changes the priority of the state. * * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed to change priority on an object state * * @param \eZ\Publish\API\Repository\Values\ObjectState\ObjectState $objectState * @param int $priority */ 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; }