bundle/Controller/Admin/AdminController.php
public function searchAction(Request $request, $contentId)
    {
        $this->denyAccessUnlessGranted('ez:infocollector:read');

        $content = $this->contentService->loadContent($contentId);

        $query = new Query([
            'contentId' => $contentId,
            'searchText' => $request->query->get('searchText'),
        ]);
        $adapter = new InformationCollectionCollectionListSearchAdapter($this->service, $query);
        $pager = $this->getPager($adapter, (int)$request->query->get('page'));

        return $this->render("NetgenInformationCollectionBundle:admin:collection_list.html.twig",
            [
                'objects' => $pager,
                'content' => $content,
            ]
        );
    }
public function searchAction(Request $request, $contentId)
    {
        $this->denyAccessUnlessGranted('ez:infocollector:read');

        $content = $this->contentService->loadContent($contentId);

        $query = new Query([
            'contentId' => $contentId,
            'searchText' => $request->query->get('searchText'),
        ]);
        $adapter = new InformationCollectionCollectionListSearchAdapter($this->service, $query);
        $pager = $this->getPager($adapter, (int)$request->query->get('page'));

        return $this->render("NetgenInformationCollectionBundle:admin:collection_list.html.twig",
            [
                'objects' => $pager,
                'content' => $content,
            ]
        );
    }
public function searchAction ( Request $ request , $ contentId ) { $ this -> denyAccessUnlessGranted ( 'ez:infocollector:read' ) ; $ content = $ this -> contentService -> loadContent ( $ contentId ) ; $ query = new Query ( [ 'contentId' => $ contentId , 'searchText' => $ request -> query -> get ( 'searchText' ) , ] ) ; $ adapter = new InformationCollectionCollectionListSearchAdapter ( $ this -> service , $ query ) ; $ pager = $ this -> getPager ( $ adapter , ( int ) $ request -> query -> get ( 'page' ) ) ; return $ this -> render ( "NetgenInformationCollectionBundle:admin:collection_list.html.twig" , [ 'objects' => $ pager , 'content' => $ content , ] ) ; }
Handles collection search

@param \Symfony\Component\HttpFoundation\Request $request
@param int $contentId

@return \Symfony\Component\HttpFoundation\Response
Handles collection search