Skip to content

Kirby 5.0.4

$layoutField->next()

Returns the next item in the collection if available

$layoutField->next(TCollection|null $collection = null): Kirby\Form\Field\LayoutField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\LayoutFieldornull

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

Parent class

Kirby\Form\Field\LayoutField inherited from Kirby\Form\FieldClass