$files->paginate()
Add pagination and return a sliced set of data.
$files->paginate(...$arguments): Kirby\Cms\Files
Parameters
Name | Type | Default |
---|---|---|
...$arguments | mixed |
no default value |
Return types
This method does not modify the existing $files
object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Cms\Files
inherited from Kirby\Cms\Collection
Examples
$files = $page->files()->paginate(10);
$pagination = $files->pagination();