/** * action create * * @param array $storage * @return void */ public function createAction($storage) { $this->storageRepository->add($storage); $this->generateAction(); $this->addFlashMessage('Your new Content-Element was created.'); $this->redirect('list'); }
/** * action create * * @param array $storage * @return void */ public function createAction($storage) { $this->storageRepository->add($storage); $this->generateAction(); $html = $this->generateHtml($storage["elements"]["key"]); // generate HTML $this->saveHtml($storage["elements"]["key"], $html); // save HTML $this->savePreviewImage($storage["elements"]["key"]); // save preview image $this->addFlashMessage(\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('tx_mask.content.newcontentelement', 'mask')); $this->redirectByAction(); }