marketRepository = $marketRepository; } /** * action show * * @return ResponseInterface */ public function showAction(): ResponseInterface { $selectedMarketId = (int)$this->settings['market']; $market = null; if ($selectedMarketId) { $market = $this->marketRepository->findByUid($selectedMarketId); } $this->view->assign('market', $market); return $this->htmlResponse(); } /** * action list * * Extbase registration target for the Marketlist plugin. In headless mode * the JSON output is produced by MarketListJsonRenderer, not by this * controller — same arrangement as LocationController::listAction(). * * @return ResponseInterface */ public function listAction(): ResponseInterface { return $this->htmlResponse(); } }