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