Skip to content

Kirby 4.4.1

$files->pagination()

Get the pagination object

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

Return type

Kirby\Cms\Pagination|null

Parent class

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

Example

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

Check out the docs for the $pagination object