Skip to content

Kirby 6.0.0

$textField->next()

Returns the next item in the collection if available

$textField->next(TCollection|null $collection = null): TextField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\TextFieldornull

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

Parent class

Kirby\Form\Field\TextField inherited from Kirby\Form\Field