Skip to content

Kirby 6.0.0

$pageListField->prev()

Returns the previous item in the collection if available

$pageListField->prev(TCollection|null $collection = null): PageListField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\PageListFieldornull

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

Parent class

Kirby\Form\Field\PageListField inherited from Kirby\Form\Field