/**
  * Displays a booked product
  *
  * @param integer $product Id number of the booked product
  * @return string Product title
  */
 public function render($product)
 {
     $product = $this->productRepository->findByUid($product);
     $product = $product->getTitle();
     return $product;
 }
Esempio n. 2
0
 /**
  * action delete
  *
  * @param \Guso\Promoshop\Domain\Model\Product $product
  *
  * @return void
  */
 public function deleteAction(Product $product)
 {
     $this->productRepository->remove($product);
     $this->addFlashMessage('Ihr bestehendes Produkt wurde entfernt.', 'Ihr Produkt', \TYPO3\CMS\Core\Messaging\AbstractMessage::OK, TRUE);
     $this->redirect('list');
 }