Skip to content

$pagination->limit()

Getter for the number of items per page

$pagination->limit(): int

Return type

int

Parent class

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

Example

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

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