public function updateRoleDraft(RoleDraft $roleDraft, RoleUpdateStruct $roleUpdateStruct)
    {
        $returnValue = $this->service->updateRoleDraft($roleDraft, $roleUpdateStruct);
        $this->signalDispatcher->emit(
            new UpdateRoleDraftSignal(
                array(
                    'roleId' => $roleDraft->id,
                )
            )
        );

        return $returnValue;
    }
public function updateRoleDraft(RoleDraft $roleDraft, RoleUpdateStruct $roleUpdateStruct)
    {
        $returnValue = $this->service->updateRoleDraft($roleDraft, $roleUpdateStruct);
        $this->signalDispatcher->emit(
            new UpdateRoleDraftSignal(
                array(
                    'roleId' => $roleDraft->id,
                )
            )
        );

        return $returnValue;
    }
public function updateRoleDraft ( RoleDraft $ roleDraft , RoleUpdateStruct $ roleUpdateStruct ) { $ returnValue = $ this -> service -> updateRoleDraft ( $ roleDraft , $ roleUpdateStruct ) ; $ this -> signalDispatcher -> emit ( new UpdateRoleDraftSignal ( array ( 'roleId' => $ roleDraft -> id , ) ) ) ; return $ returnValue ; }
Updates the properties of a role draft.

@since 6.0

@throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to update a role
@throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException if the identifier of the role already exists

@param \eZ\Publish\API\Repository\Values\User\RoleDraft $roleDraft
@param \eZ\Publish\API\Repository\Values\User\RoleUpdateStruct $roleUpdateStruct

@return \eZ\Publish\API\Repository\Values\User\RoleDraft
Updates the properties of a role draft .