module/Customize/src/Grid/Customize/Controller/CssAdminController.php
public function cancelAction()
    {
        /* @var $cssPreview \Grid\Customize\Service\CssPreview */
        $params     = $this->params();
        $locator    = $this->getServiceLocator();
        $cssPreview = $locator->get( 'Grid\Customize\Service\CssPreview' );
        $id         = $params->fromRoute( 'id' );
        $rootId     = is_numeric( $id ) ? (int) $id : null;

        if ( $cssPreview->hasPreviewById( $rootId ) )
        {
            @ unlink( 'public' . $cssPreview->getPreviewById( $rootId ) );
            $cssPreview->unsetPreviewById( $rootId );
        }

        return $this->redirect()
                    ->toRoute( 'Grid\Customize\CssAdmin\List', array(
                        'locale' => (string) $this->locale(),
                    ) );
    }
public function cancelAction()
    {
        /* @var $cssPreview \Grid\Customize\Service\CssPreview */
        $params     = $this->params();
        $locator    = $this->getServiceLocator();
        $cssPreview = $locator->get( 'Grid\Customize\Service\CssPreview' );
        $id         = $params->fromRoute( 'id' );
        $rootId     = is_numeric( $id ) ? (int) $id : null;

        if ( $cssPreview->hasPreviewById( $rootId ) )
        {
            @ unlink( 'public' . $cssPreview->getPreviewById( $rootId ) );
            $cssPreview->unsetPreviewById( $rootId );
        }

        return $this->redirect()
                    ->toRoute( 'Grid\Customize\CssAdmin\List', array(
                        'locale' => (string) $this->locale(),
                    ) );
    }
public function cancelAction ( ) { /* @var $cssPreview \Grid\Customize\Service\CssPreview */ $ params = $ this -> params ( ) ; $ locator = $ this -> getServiceLocator ( ) ; $ cssPreview = $ locator -> get ( 'Grid\Customize\Service\CssPreview' ) ; $ id = $ params -> fromRoute ( 'id' ) ; $ rootId = is_numeric ( $ id ) ? ( int ) $ id : null ; if ( $ cssPreview -> hasPreviewById ( $ rootId ) ) { @ unlink ( 'public' . $ cssPreview -> getPreviewById ( $ rootId ) ) ; $ cssPreview -> unsetPreviewById ( $ rootId ) ; } return $ this -> redirect ( ) -> toRoute ( 'Grid\Customize\CssAdmin\List' , array ( 'locale' => ( string ) $ this -> locale ( ) , ) ) ; }
Cancel an edit of a css
Cancel an edit of a css