public function deleteRoleDraft(RoleDraft $roleDraft)
    {
        $returnValue = $this->service->deleteRoleDraft($roleDraft);
        $this->signalDispatcher->emit(
            new DeleteRoleDraftSignal(
                array(
                    'roleId' => $roleDraft->id,
                )
            )
        );

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

        return $returnValue;
    }
public function deleteRoleDraft ( RoleDraft $ roleDraft ) { $ returnValue = $ this -> service -> deleteRoleDraft ( $ roleDraft ) ; $ this -> signalDispatcher -> emit ( new DeleteRoleDraftSignal ( array ( 'roleId' => $ roleDraft -> id , ) ) ) ; return $ returnValue ; }
Deletes the given role draft.

@since 6.0

@throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to delete this role

@param \eZ\Publish\API\Repository\Values\User\RoleDraft $roleDraft
Deletes the given role draft .