Skip to content

Kirby 6.0.0

$usernameField->toArray()

Converts the field to a plain array

$usernameField->toArray(): array

Return type

array<string, mixed>

Parent class

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