Reference

Guide

$pagination->limit()

Getter for the number of items per page


$pagination->limit(int $limit = null): int

Parameters

Name Type Default Description
$limit int null

Return type

int

Example

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

echo 'Displaying ' . $pagination->limit() . ' of ' . $pagination->items() . ' items';

Inherited from

Kirby\Toolkit\Pagination

Source code

kirby/src/Toolkit/Pagination.php#L162