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