Skip to content

Kirby 5.0.4

$fields->next()

Moves the cursor to the next element and returns it

$fields->next(): Kirby\Form\Field|Kirby\Form\FieldClass

Return types

Kirby\Form\FieldorKirby\Form\FieldClass

This method modifies the existing $fields object it is applied to and returns it again.

Parent class

Kirby\Form\Fields inherited from Kirby\Toolkit\Iterator