Skip to content

Kirby 4.4.1

$pagination->firstPage()

Returns the first page

$pagination->firstPage(): int

Return type

int

Parent class

Kirby\Cms\Pagination inherited from Kirby\Toolkit\Pagination

Example

$subpages   = $page->children()->paginate(10);
$pagination = $subpages->pagination();

echo $pagination->firstPage();
// most probably 1