*/
protected array $config;
+ /**
+ * Count integer
+ */
+ protected int $count;
+
/**
* Context array
*/
protected \DateTime $modified;
/**
- * Limit integer
+ * Page integer
*/
protected int $page;
}
}
+ //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'));
+ }
+ }
+
//Without facebook image defined and texts
if (empty($parameters['head']['facebook']['og:image']) && !empty($this->request) && !empty($parameters['head']['fbimage']['texts']) && !empty($this->modified)) {
//Get facebook image