コード例 #1
0
 /**
  * Action List
  *
  * @return void
  */
 public function listAction()
 {
     $this->view->setVariablesToRender([$this->resourceArgumentName . 's']);
     $this->view->assign($this->resourceArgumentName . 's', $this->resourceRepository->findAll());
 }
コード例 #2
0
 /**
  * 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);
 }