Skip to content

Kirby 6.0.0

$dateField->prev()

Returns the previous item in the collection if available

$dateField->prev(TCollection|null $collection = null): DateField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\DateFieldornull

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

Parent class

Kirby\Form\Field\DateField inherited from Kirby\Form\Field