+ //With count
+ if (!empty($this->count)) {
+ //With prev link
+ if ($this->page > 0) {
+ //Set head prev
+ $parameters['head']['prev'] = $this->generateUrl($this->request->get('_route'), ['page' => $this->page - 1]+$this->request->get('_route_params'));
+ }
+
+ //With next link
+ if ($this->count > ($this->page + 1) * $this->limit) {
+ //Set head next
+ $parameters['head']['next'] = $this->generateUrl($this->request->get('_route'), ['page' => $this->page + 1]+$this->request->get('_route_params'));
+ }
+ }
+