Skip to content

Kirby 5.0.1

Form::for()

Creates a new Form instance for the given model with the fields from the blueprint and the values from the content

Form::for(Kirby\Cms\ModelWithContent $model, array $props = [ ], Kirby\Cms\Language|string|null $language = null): Kirby\Form\Form

Parameters

Name Type Default
$modelrequired Kirby\Cms\ModelWithContent no default value
$props array [ ]
$language Kirby\Cms\Languageorstringornull null

Return type

Kirby\Form\Form

Parent class

Kirby\Form\Form