Skip to content

Kirby 6.0.0

$titleField->prev()

Returns the previous item in the collection if available

$titleField->prev(TCollection|null $collection = null): TitleField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Panel\Form\Field\TitleFieldornull

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

Parent class

Kirby\Panel\Form\Field\TitleField inherited from Kirby\Form\Field