Skip to content

Kirby 5.1.2

$statsField->prev()

Returns the previous item in the collection if available

$statsField->prev(TCollection|null $collection = null): Kirby\Form\Field\StatsField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\StatsFieldornull

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

Parent class

Kirby\Form\Field\StatsField inherited from Kirby\Form\FieldClass