$modelListField->prev()
Returns the previous item in the collection if available
$modelListField->prev(TCollection|null $collection = null): ModelListField|null
Parameters
| Name | Type | Default |
|---|---|---|
| $collection | TCollectionornull |
null
|
Return types
Kirby\Form\Field\ModelListFieldornull
This method does not modify the existing $modellistfield object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Form\Field\ModelListField
inherited from Kirby\Form\Field