Skip to content

Kirby 3.7.5

$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';