getFolderId()) { $search->filterById(); } if (null !== $folder_title = $this->getFolderTitle()) { $title = FolderI18nQuery::create(); $title->filterByTitle(); } return $search; } /** * @param LoopResult $loopResult * * @return LoopResult */ public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $folder) { /** @var Folder $folder */ $loopResultRow = new LoopResultRow($folder); $lang = $this->request->getSession()->get('thelia.current.lang'); $loopResultRow ->set('folder_id', $folder->getId()) ->set('folder_title', $folder->getTranslation($lang->getLocale())->getTitle()); $loopResult->addRow($loopResultRow); } return $loopResult; } }