public function configureAction($id)
    {
        /** @var \Thelia\Handler\Exporthandler $exportHandler */
        $exportHandler = $this->container->get('thelia.export.handler');

        $export = $exportHandler->getExport($id);
        if ($export === null) {
            return $this->pageNotFound();
        }

        // Render standard view or ajax one
        $templateName = 'export-page';
        if ($this->getRequest()->isXmlHttpRequest()) {
            $templateName = 'ajax/export-modal';
        }

        return $this->render(
            $templateName,
            [
                'exportId' => $id,
                'hasImages' => $export->hasImages(),
                'hasDocuments' => $export->hasDocuments(),
                'useRange' => $export->useRangeDate()
            ]
        );
    }
public function configureAction($id)
    {
        /** @var \Thelia\Handler\Exporthandler $exportHandler */
        $exportHandler = $this->container->get('thelia.export.handler');

        $export = $exportHandler->getExport($id);
        if ($export === null) {
            return $this->pageNotFound();
        }

        // Render standard view or ajax one
        $templateName = 'export-page';
        if ($this->getRequest()->isXmlHttpRequest()) {
            $templateName = 'ajax/export-modal';
        }

        return $this->render(
            $templateName,
            [
                'exportId' => $id,
                'hasImages' => $export->hasImages(),
                'hasDocuments' => $export->hasDocuments(),
                'useRange' => $export->useRangeDate()
            ]
        );
    }
public function configureAction ( $ id ) { /** @var \Thelia\Handler\Exporthandler $exportHandler */ $ exportHandler = $ this -> container -> get ( 'thelia.export.handler' ) ; $ export = $ exportHandler -> getExport ( $ id ) ; if ( $ export === null ) { return $ this -> pageNotFound ( ) ; } // Render standard view or ajax one $ templateName = 'export-page' ; if ( $ this -> getRequest ( ) -> isXmlHttpRequest ( ) ) { $ templateName = 'ajax/export-modal' ; } return $ this -> render ( $ templateName , [ 'exportId' => $ id , 'hasImages' => $ export -> hasImages ( ) , 'hasDocuments' => $ export -> hasDocuments ( ) , 'useRange' => $ export -> useRangeDate ( ) ] ) ; }
Display export configuration view

@param integer $id An export identifier

@return \Thelia\Core\HttpFoundation\Response
Display export configuration view