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

        $content = $this->contentService->loadContent($contentId);
        $query = Query::withContent($contentId);
        $adapter = new InformationCollectionCollectionListAdapter($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 collectionListAction(Request $request, $contentId)
    {
        $this->denyAccessUnlessGranted('ez:infocollector:read');

        $content = $this->contentService->loadContent($contentId);
        $query = Query::withContent($contentId);
        $adapter = new InformationCollectionCollectionListAdapter($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 collectionListAction ( Request $ request , $ contentId ) { $ this -> denyAccessUnlessGranted ( 'ez:infocollector:read' ) ; $ content = $ this -> contentService -> loadContent ( $ contentId ) ; $ query = Query :: withContent ( $ contentId ) ; $ adapter = new InformationCollectionCollectionListAdapter ( $ 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 , ] ) ; }
Displays list of collection for selected Content

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

@return \Symfony\Component\HttpFoundation\Response
Displays list of collection for selected Content