Skip to content

Kirby 6.0.0

$toggleField->next()

Returns the next item in the collection if available

$toggleField->next(TCollection|null $collection = null): ToggleField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\ToggleFieldornull

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

Parent class

Kirby\Form\Field\ToggleField inherited from Kirby\Form\Field