/** * Action List * * @return void */ public function listAction() { $this->view->setVariablesToRender([$this->resourceArgumentName . 's']); $this->view->assign($this->resourceArgumentName . 's', $this->resourceRepository->findAll()); }
/** * Find all ordered by the localized name * * @param string $orderDirection may be "asc" or "desc". Default is "asc". * @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface|array all entries ordered by localized name */ protected function findAllOrderedByLocalizedName($orderDirection = 'asc') { $entities = parent::findAll(); return $this->localizedSort($entities, $orderDirection); }