Skip to content

Kirby 6.0.0

$roleField->prev()

Returns the previous item in the collection if available

$roleField->prev(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