Skip to content

Kirby 6.0.0

$hiddenField->prev()

Returns the previous item in the collection if available

$hiddenField->prev(TCollection|null $collection = null): HiddenField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\HiddenFieldornull

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

Parent class

Kirby\Form\Field\HiddenField inherited from Kirby\Form\Field