Skip to content

Kirby 6.0.0

$valueField->next()

Returns the next item in the collection if available

$valueField->next(TCollection|null $collection = null): ValueField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\ValueFieldornull

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

Parent class

Kirby\Form\Field\ValueField inherited from Kirby\Form\Field