Skip to content

Pagination::for()

Creates a pagination instance for the given collection with a flexible argument api

Pagination::for(Kirby\Toolkit\Collection $collection, mixed $arguments = null): Kirby\Toolkit\Pagination

Parameters

Name Type Default
$collection * Kirby\Toolkit\Collection
$arguments mixed null

Return type

Kirby\Toolkit\Pagination

This method does not modify the existing $pagination object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Toolkit\Pagination