Skip to content

Kirby 6.0.0

$roleField->next()

Returns the next item in the collection if available

$roleField->next(TCollection|null $collection = null): RoleField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Panel\Form\Field\RoleFieldornull

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

Parent class

Kirby\Panel\Form\Field\RoleField inherited from Kirby\Form\Field