module/Customize/src/Grid/Customize/Controller/CssAdminController.php
public function resetPreviewsAction()
    {
        /* @var $cssPreview \Grid\Customize\Service\CssPreview */
        $cssPreview = $this->getServiceLocator()
                           ->get( 'Grid\Customize\Service\CssPreview' );

        foreach ( $cssPreview->getPreviews() as $url )
        {
            @ unlink( 'public' . $url );
        }

        $cssPreview->unsetPreviews();

        $this->messenger()
             ->add( 'customize.preview.reset',
                    'customize', Message::LEVEL_INFO );

        return $this->redirect()
                    ->toUrl( '/' );
    }
public function resetPreviewsAction()
    {
        /* @var $cssPreview \Grid\Customize\Service\CssPreview */
        $cssPreview = $this->getServiceLocator()
                           ->get( 'Grid\Customize\Service\CssPreview' );

        foreach ( $cssPreview->getPreviews() as $url )
        {
            @ unlink( 'public' . $url );
        }

        $cssPreview->unsetPreviews();

        $this->messenger()
             ->add( 'customize.preview.reset',
                    'customize', Message::LEVEL_INFO );

        return $this->redirect()
                    ->toUrl( '/' );
    }
public function resetPreviewsAction ( ) { /* @var $cssPreview \Grid\Customize\Service\CssPreview */ $ cssPreview = $ this -> getServiceLocator ( ) -> get ( 'Grid\Customize\Service\CssPreview' ) ; foreach ( $ cssPreview -> getPreviews ( ) as $ url ) { @ unlink ( 'public' . $ url ) ; } $ cssPreview -> unsetPreviews ( ) ; $ this -> messenger ( ) -> add ( 'customize.preview.reset' , 'customize' , Message :: LEVEL_INFO ) ; return $ this -> redirect ( ) -> toUrl ( '/' ) ; }
Reset all previews
Reset all previews