$fieldClass->prev()
Returns the previous item in the collection if available
$fieldClass->prev(Kirby\Form\Fields|null $collection = null): Kirby\Form\FieldClass|null
Parameters
Name | Type | Default |
---|---|---|
$collection | Kirby\Form\Fields ornull |
null
|
Return types
Kirby\Form\FieldClass
ornull
This method does not modify the existing $fieldclass
object but returns a new object with the changes applied. Learn more →