Skip to content

Kirby 6.0.0

$buttonsField->prev()

Returns the previous item in the collection if available

$buttonsField->prev(TCollection|null $collection = null): ButtonsField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\ButtonsFieldornull

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

Parent class

Kirby\Form\Field\ButtonsField inherited from Kirby\Form\Field