/** * action truncate * * @param string $screenName * @param integer $storagePid * @return void */ public function truncateAction($screenName, $storagePid) { if ($screenName != "") { $this->twitterRepository->removeByPageId($screenName, $storagePid); } $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:moox_social/Resources/Private/Language/locallang.xlf:overview.twitter.listing.truncate.success', $this->extensionName), '', \TYPO3\CMS\Core\Messaging\FlashMessage::OK, TRUE); \TYPO3\CMS\Core\Messaging\FlashMessageQueue::addMessage($message); $this->redirect('index'); }