Skip to content

Kirby 6.0.0

$modelPickerField->next()

Returns the next item in the collection if available

$modelPickerField->next(TCollection|null $collection = null): ModelPickerField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\ModelPickerFieldornull

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

Parent class

Kirby\Form\Field\ModelPickerField inherited from Kirby\Form\Field