Skip to content

Kirby 6.0.0

$linkField->prev()

Returns the previous item in the collection if available

$linkField->prev(TCollection|null $collection = null): LinkField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\LinkFieldornull

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

Parent class

Kirby\Form\Field\LinkField inherited from Kirby\Form\Field