Skip to content

Commit

Permalink
feat: items per page
Browse files Browse the repository at this point in the history
  • Loading branch information
64knl committed May 2, 2023
1 parent df530b4 commit a202a32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NotFound/Layout/Elements/LayoutPager.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

class LayoutPager extends AbstractLayout
{
public function __construct(int $totalItems)
public function __construct(int $totalItems, ?int $itemsPerPage = null)
{
parent::__construct(type: 'Pager');

$this->properties->itemsPerPage = $itemsPerPage ?? 25;
$this->properties->totalItems = $totalItems;
}
}

0 comments on commit a202a32

Please sign in to comment.