Skip to content

Commit a202a32

Browse files
committed
feat: items per page
1 parent df530b4 commit a202a32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NotFound/Layout/Elements/LayoutPager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
class LayoutPager extends AbstractLayout
66
{
7-
public function __construct(int $totalItems)
7+
public function __construct(int $totalItems, ?int $itemsPerPage = null)
88
{
99
parent::__construct(type: 'Pager');
1010

11+
$this->properties->itemsPerPage = $itemsPerPage ?? 25;
1112
$this->properties->totalItems = $totalItems;
1213
}
1314
}

0 commit comments

Comments
 (0)