Skip to content

Kirby 6.0.0

$inputField->prev()

Returns the previous item in the collection if available

$inputField->prev(TCollection|null $collection = null): InputField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\InputFieldornull

This method does not modify the existing $inputfield object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Form\Field\InputField inherited from Kirby\Form\Field