@@ 85-93 (lines=9) @@ | ||
82 | * |
|
83 | * @return \Symfony\Component\HttpFoundation\Response |
|
84 | */ |
|
85 | public function overviewAction(Request $request) |
|
86 | { |
|
87 | $this->checkReadPermissions(); |
|
88 | ||
89 | $adapter = new InformationCollectionContentsAdapter($this->service, Query::countQuery()); |
|
90 | $pager = $this->getPager($adapter, (int) $request->query->get('page')); |
|
91 | ||
92 | return $this->render("@NetgenInformationCollection/admin/overview.html.twig", ['objects' => $pager]); |
|
93 | } |
|
94 | ||
95 | /** |
|
96 | * Displays list of collection for selected Content |
|
@@ 103-114 (lines=12) @@ | ||
100 | * |
|
101 | * @return \Symfony\Component\HttpFoundation\Response |
|
102 | */ |
|
103 | public function collectionListAction(Request $request, Content $content) |
|
104 | { |
|
105 | $this->checkReadPermissions(); |
|
106 | ||
107 | $adapter = new InformationCollectionCollectionListAdapter($this->service, ContentId::withContentId($content->id)); |
|
108 | $pager = $this->getPager($adapter, (int)$request->query->get('page')); |
|
109 | ||
110 | return $this->render("@NetgenInformationCollection/admin/collection_list.html.twig", [ |
|
111 | 'objects' => $pager, |
|
112 | 'content' => $content, |
|
113 | ]); |
|
114 | } |
|
115 | ||
116 | /** |
|
117 | * Handles collection search |