Skip to content

Kirby 6.0.0

$filePositionField->prev()

Returns the previous item in the collection if available

$filePositionField->prev(TCollection|null $collection = null): FilePositionField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Panel\Form\Field\FilePositionFieldornull

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

Parent class

Kirby\Panel\Form\Field\FilePositionField inherited from Kirby\Form\Field