/** * List action for this controller. * * @return void */ public function indexAction() { $dataType = $this->getModuleLoader()->getDataType(); $selections = $this->selectionRepository->findByDataTypeForCurrentBackendUser($dataType); $this->view->assign('selections', $selections); $columns = Tca::grid()->getFields(); $this->view->assign('columns', $columns); $this->view->assign('numberOfColumns', count($columns)); }
/** * @param string $dataType */ public function listAction($dataType) { $selections = $this->selectionRepository->findByDataTypeForCurrentBackendUser($dataType); $this->view->assign('selections', $selections); }