Finds and displays a NewsletterShipping entity.

@Route("/shipping/{id}")
@Method("GET")
@Template("CoreExtraBundle:Newsletter/Shipping:show.html.twig")
514908
public function showShippingAction(NewsletterShipping $newsletterShipping)
    {
        $deleteForm = $this->createNShippingDeleteForm($newsletterShipping);

        return array(
            'entity' => $newsletterShipping,
            'delete_form' => $deleteForm->createView(),
        );
    }
546218
public function render()
    {
        parent::render();

        $soxId = $this->getEditObjectId();
        if ($soxId != "-1" && isset($soxId)) {
            // load object
            $oNewsletter = oxNew(\OxidEsales\Eshop\Application\Model\Newsletter::class);
            $oNewsletter->load($soxId);
            $this->_aViewData["edit"] = $oNewsletter;

            // user
            $sUserID = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable("auth");

            // assign values to the newsletter and show it
            $oNewsletter->prepare($sUserID, \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('bl_perfLoadAktion'));

            $this->_aViewData["previewhtml"] = $oNewsletter->getHtmlText();
            $this->_aViewData["previewtext"] = $oNewsletter->getPlainText();
        }

        return "newsletter_preview.tpl";
    }
1018106
public function aroundSendConfirmationSuccessEmail(
        \Magento\Newsletter\Model\Subscriber $subscriber,
        callable $proceed
    ) {
        $storeId = $subscriber->getStoreId();
        //scope config for sending newsletter is disabled
        if (! $this->scopeConfig->getValue(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_DISABLE_NEWSLETTER_SUCCESS,
            'store',
            $storeId
        )
        ) {
            return $proceed();
        }
    }
1242501
public function showAction(Request $request, $id)
    {
        $em = $this->getDoctrine()->getManager();

        /** @var Invoice $entity */
        $invoice = $em->getRepository('EcommerceBundle:Invoice')->find($id);

        if (!$invoice) {
            throw $this->createNotFoundException('Unable to find Invoice entity.');
        }

        // download invoice
        if (!$invoice ||
            false === $this->container->get('checkout_manager')->isCurrentUserOwner($invoice->getTransaction())) {
            throw new AccessDeniedException();
        }

        /** @var CheckoutManager $checkoutManager */
        $checkoutManager = $this->container->get('checkout_manager');

        $delivery = $invoice->getTransaction()->getDelivery();
        $totals = $checkoutManager->calculateTotals($invoice->getTransaction(), $delivery);
        if ('true' === $request->get('download')) {
            $html = $this->container->get('templating')->render('EcommerceBundle:Profile:Invoice/download.html.twig', array(
                    'delivery' => $delivery,
                    'invoice'  => $invoice,
                    'totals'   => $totals,
                ));
            $html2pdf = $this->get('html2pdf_factory')->create();
            $html2pdf->WriteHTML($html);
            
            return new Response(
                $html2pdf->Output('invoice'.$invoice->getInvoiceNumber().'.pdf'),
                200,
                array(
                    'Content-Type'        => 'application/pdf',
                    'Content-Disposition' => 'attachment; filename="invoice'.$invoice->getInvoiceNumber().'.pdf"'
                )
            );
        }
        
       
        return array(
            'entity' => $invoice,
            'totals' => $totals,
        );
    }
1150985
def new
      @newsletter_subscription = Cmtool::NewsletterSubscription.new

      respond_to do |format|
        format.html # new.html.erb
        format.xml  { render :xml => @newsletter_subscription }
      end
    end
1161293
public function actionPreview($id)
    {
        $emailTemplate = $this->loadModel($id);
        echo CHtml::tag('div', array('style' => 'font-family: Arial; font-weight: bold;'), $emailTemplate->subject) . '<hr/>';
        echo $emailTemplate->message;
    }
691552
public function show($id)
    {
        $newsletter = $this->newsletter->find($id);
        
        return view('newsletter::Frontend.show')->with(['newsletter' => $newsletter]);
    }
828959
public function show($id)
    {
        $campagne = $this->campagne->find($id);
        $blocs    = $this->type->getAll();

        return view('newsletter::Backend.campagne.show')->with(['campagne' => $campagne, 'blocs' => $blocs]);
    }
241574
protected static function deleteFreeShippingByIdAsyncWithHttpInfo($free_shipping_id) 
    {
        $returnType = '';  
        $request = self::deleteFreeShippingByIdRequest($free_shipping_id); 

        return self::getHttpClient()
            ->sendAsync($request, self::createHttpClientOption())
            ->then(
                function ($response) use ($returnType) {
                    return [null, $response->getStatusCode(), $response->getHeaders()];
                },
                function ($exception) {
                    $response = $exception->getResponse();
                    $statusCode = $response->getStatusCode();
                    throw new ApiException(
                        sprintf(
                            '[%d] Error connecting to the API (%s)',
                            $statusCode,
                            $exception->getRequest()->getUri()
                        ),
                        $statusCode,
                        $response->getHeaders(),
                        $response->getBody()
                    );
                }
            );
    }
121481
protected function registerMailjetNewService(){

        $this->app->bind('designpond\newsletter\Newsletter\Worker\MailjetServiceInterface', function()
        {
            return new \designpond\newsletter\Newsletter\Worker\MailjetService(
                new \Mailjet\Client(config('newsletter.mailjet.api'),config('newsletter.mailjet.secret')),
                new \Mailjet\Resources()
            );
        });
    }
579327
public function getShipping()
    {
        return new ApiShipping(
            $this->entity->getShipping(),
            $this->locale,
            $this->itemFactory,
            $this->priceFormatter
        );
    }
1348844
public function deleteShippingAction(Request $request, NewsletterShipping $newsletterShipping)
    {
        $em = $this->getDoctrine()->getManager();
        $em->remove($newsletterShipping);
        $em->flush();

        $this->get('session')->getFlashBag()->add('success', 'newsletter.shipping.deleted');
        
        if($request->query->get('redirect')!=''){
            return  $this->redirect($request->query->get('redirect'));
        }
        
        return $this->redirect($this->generateUrl('coreextra_newsletter_shipping'));
    }
1018438
public function show($id) {

        // Mark this email as read
        $this->repository->markEmailAsRead($id);

        return view('lasallecmsemail::admin/emailhandling/show',
            [
                'record'                       => $this->repository->getFind($id),
                'records_attachments'          => $this->email_attachmentRepository->getEmailAttachmentsForAdminShow($id),
                'package_title'                => $this->model->package_title,
                'table_name'                   => $this->model->table,
                'model_class'                  => $this->model->model_class,
                'resource_route_name'          => $this->model->resource_route_name,
                'DatesHelper'                  => DatesHelper::class,
                'HTMLHelper'                   => HTMLHelper::class,
                'ImagesHelper'                 => ImagesHelper::class,
                'Config'                       => Config::class,
                'admin_template_name'          => config('lasallecmsadmin.admin_template_name'),
            ]);
    }
1238872
public function updateFromEmbeddedApiResponse(array $data, string $currency, ShippingMethodInterface $shippingMethod = null): ShippingMethodInterface
    {
        if (!$shippingMethod) {
            $shippingMethod = $this->getShippingMethod($data['id']);
        }

        if (!$shippingMethod->getId()) {
            // only update when we create a new entity because this is the embedded method
            $shippingMethod
                ->setFee(DandomainFoundation\createMoney((string) $currency, $data['fee']))
                ->setFeeInclVat($data['feeInclVat'])
                ->setName($data['name']);
        }

        return $shippingMethod;
    }
1155462
protected function registerContentService(){

        $this->app->bind('designpond\newsletter\Newsletter\Repo\NewsletterContentInterface', function()
        {
            return new \designpond\newsletter\Newsletter\Repo\NewsletterContentEloquent( new \designpond\newsletter\Newsletter\Entities\Newsletter_contents );
        });
    }
189456
protected function getShipppingData($options)
    {
        parent::addEntry(
            $options['id'],
            $options['number'],
            'shipping',
            new DateTime($options['date']),
            parent::getRoute($options['id'], 'shipping', 'details'),
            Shipping::$pdfBaseUrl
        );
    }
452095
public function showAction() {
        try {
            if(sizeOf($this->dispatcher->getParams()) == 0) {
                throw new Exception('Invalid Entity Id Passed In', 400);
            }
            $entity = $this->validateEntityId($this->dispatcher->getParam(0));
            $this->showActionInternal($entity);
        } catch(Exception $e) {
            $this->handleError($e);
        } catch(ValidationException $e) {
            $this->handleValidationError($e);
        } catch(AclException $e) {
            $this->handleAclError($e);
        }
    }