/** * action list * * @return void */ public function listAction() { $locations = $this->locationRepository->findAll(); $this->view->assign('locations', $locations); }
/** * action delete * * @param \TYPO3\EasyGooglemap\Domain\Model\Location $location * @return void */ public function deleteAction(\TYPO3\EasyGooglemap\Domain\Model\Location $location) { $this->locationRepository->remove($location); $this->flashMessageContainer->add('Your Location was removed.'); $this->redirect('list'); }