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