$files->paginate()
Add pagination and return a sliced set of data.
$files->paginate(mixed ...$arguments = null): Kirby\Cms\Collection
Parameters
Name | Type | Default |
---|---|---|
... $arguments | mixed |
null |
Return type
Parent class
Kirby\Cms\Files
inherited from Kirby\Cms\Collection
Example
$files = $page->files()->paginate(10);
$pagination = $files->pagination();
Related
Check out the docs for the $pagination object