Classes/Controller/StyleguideController.php
public function tcaDeleteAction()
    {
        /** @var Generator $generator */
        $generator = GeneralUtility::makeInstance(Generator::class);
        $generator->delete();
        // Tell something was done here
        $this->addFlashMessage(
            LocalizationUtility::translate($this->languageFilePrefix . 'tcaDeleteActionOkBody', 'styleguide'),
            LocalizationUtility::translate($this->languageFilePrefix . 'tcaDeleteActionOkTitle', 'styleguide')
        );
        // And redirect to display action
        $this->forward('tca');
    }
public function tcaDeleteAction()
    {
        /** @var Generator $generator */
        $generator = GeneralUtility::makeInstance(Generator::class);
        $generator->delete();
        // Tell something was done here
        $this->addFlashMessage(
            LocalizationUtility::translate($this->languageFilePrefix . 'tcaDeleteActionOkBody', 'styleguide'),
            LocalizationUtility::translate($this->languageFilePrefix . 'tcaDeleteActionOkTitle', 'styleguide')
        );
        // And redirect to display action
        $this->forward('tca');
    }
public function tcaDeleteAction ( ) { /** @var Generator $generator */ $ generator = GeneralUtility :: makeInstance ( Generator :: class ) ; $ generator -> delete ( ) ; // Tell something was done here $ this -> addFlashMessage ( LocalizationUtility :: translate ( $ this -> languageFilePrefix . 'tcaDeleteActionOkBody' , 'styleguide' ) , LocalizationUtility :: translate ( $ this -> languageFilePrefix . 'tcaDeleteActionOkTitle' , 'styleguide' ) ) ; // And redirect to display action $ this -> forward ( 'tca' ) ; }
TCA delete default data action
TCA delete default data action