Skip to content

Kirby 6.0.0

$structureField->next()

Returns the next item in the collection if available

$structureField->next(TCollection|null $collection = null): StructureField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\StructureFieldornull

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

Parent class

Kirby\Form\Field\StructureField inherited from Kirby\Form\Field