/** * Removes the given comment object from the comment repository * * @param \Lelesys\Plugin\News\Domain\Model\Comment $comment The comment to delete * @return void */ public function deleteAction(\Lelesys\Plugin\News\Domain\Model\Comment $comment) { $this->commentService->delete($comment); $packageKey = $this->settings['flashMessage']['packageKey']; $header = 'Deleted a comment.'; $message = $this->translator->translateById('lelesys.plugin.news.delete.comment', array(), NULL, NULL, 'Main', $packageKey); $this->addFlashMessage($message, $header, \TYPO3\Flow\Error\Message::SEVERITY_OK); $this->redirect('index'); }