Skip to content

Kirby 6.0.1

Fields::for()

Creates a new Fields instance for the given model and language

Fields::for(ModelWithContent $model, Language|string|null $language = null): Fields

Parameters

Name Type Default
$modelrequired Kirby\Cms\ModelWithContent no default value
$language Kirby\Cms\Languageorstringornull null

Return type

Kirby\Form\Fields

Parent class

Kirby\Form\Fields