Skip to content

Kirby 6.0.1

$fieldset->next()

Returns the next item in the collection if available

$fieldset->next(Fieldsets|null $collection = null): Fieldset|null

Parameters

Name Type Default
$collection Kirby\Cms\Fieldsetsornull null

Return types

Kirby\Cms\Fieldsetornull

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

Parent class

Kirby\Cms\Fieldset inherited from Kirby\Cms\Item