private function buildTableRows($table, $rows) { $httpService = new HttpService(); if ($this->sortingEnabled && $httpService->sortingGetParamsAreSet()) { $rowSorter = new RowSorter($rows); $rows = $rowSorter->sortRowsByCell($httpService->getSortByValue(), $httpService->getSortDirection()); } if ($this->paginator) { $this->startPaginator($httpService, $rows); } /** @var Row $row */ foreach ($rows as $row) { $row->addActions($this->rowActions); $tr = $row->render(); $table->add($tr); } }