Skip to content

Kirby 5.1.2

$pagePicker->paginate()

Apply pagination to the collection of items according to the options.

$pagePicker->paginate(Kirby\Cms\Collection $items): Kirby\Cms\Collection

Parameters

Name Type Default
$itemsrequired Kirby\Cms\Collection no default value

Return type

Kirby\Cms\Collection

This method modifies the existing $pagepicker object it is applied to and returns it again.

Parent class

Kirby\Cms\PagePicker inherited from Kirby\Cms\Picker