Skip to content

Kirby 5.0.4

new Field()

Creates a new field object

new Field(Kirby\Cms\ModelWithContent|null $parent, string $key, mixed $value)

Parameters

Name Type Default Description
$parent Kirby\Cms\ModelWithContentornull no default value Parent object if available. This will be the page, site, user or file to which the content belongs
$keyrequired string no default value The field name
$valuerequired mixed no default value

Parent class

Kirby\Content\Field