Skip to content

Kirby 3.9.8

$files->pagination()

Get the previously added pagination object

$files->pagination(): Kirby\Toolkit\Pagination|null

Return type

Kirby\Toolkit\Pagination|null

Parent class

Kirby\Cms\Files inherited from Kirby\Toolkit\Collection

Example

$files      = $page->files()->paginate(10);
$pagination = $files->pagination();

Check out the docs for the $pagination object