Skip to content

Kirby 6.0.0

$selectField->next()

Returns the next item in the collection if available

$selectField->next(TCollection|null $collection = null): SelectField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\SelectFieldornull

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

Parent class

Kirby\Form\Field\SelectField inherited from Kirby\Form\Field