/**
  * action delete
  *
  * @param string $key
  * @param string $type
  * @return void
  */
 public function deleteAction($key, $type)
 {
     $this->storageRepository->remove($type, $key);
     $this->generateAction();
     $this->addFlashMessage(\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('tx_mask.content.deletedcontentelement', 'mask'));
     $this->redirect('list');
 }
Exemple #2
0
 /**
  * action delete
  *
  * @param array $storage
  * @return void
  */
 public function deleteAction(array $storage)
 {
     $this->storageRepository->remove($storage);
     $this->addFlashMessage('Your Page was removed.');
     $this->redirect('list');
 }