Skip to content

Kirby 5.0.4

$fieldset->next()

Returns the next item in the collection if available

$fieldset->next(Kirby\Cms\Fieldsets|null $collection = null): Kirby\Cms\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