Skip to content

Kirby 6.0.0

$usernameField->prev()

Returns the previous item in the collection if available

$usernameField->prev(TCollection|null $collection = null): UsernameField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Panel\Form\Field\UsernameFieldornull

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

Parent class

Kirby\Panel\Form\Field\UsernameField inherited from Kirby\Form\Field