Skip to content

Kirby 5.0.0

$fieldClass->prev()

Returns the previous item in the collection if available

$fieldClass->prev(Kirby\Form\Fields|null $collection = null): Kirby\Form\FieldClass|null

Parameters

Name Type Default
$collection Kirby\Form\Fieldsornull null

Return types

Kirby\Form\FieldClassornull

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

Parent class

Kirby\Form\FieldClass