Skip to content

Kirby 5.0.1

$fieldClass->next()

Returns the next item in the collection if available

$fieldClass->next(Kirby\Form\Fields|null $collection = null): Kirby\Form\FieldClass|null

Parameters

Name Type Default
$collection Kirby\Form\Fieldsornull null

Return types

Kirby\Form\FieldClassornull

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

Parent class

Kirby\Form\FieldClass