Skip to content

Kirby 6.0.0

$displayField->prev()

Returns the previous item in the collection if available

$displayField->prev(TCollection|null $collection = null): DisplayField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\DisplayFieldornull

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

Parent class

Kirby\Form\Field\DisplayField inherited from Kirby\Form\Field