Skip to content

Kirby 5.0.1

$file->createDefaultContent()

Creates default content for the model, by using our Form class to generate the defaults, based on the model's blueprint setup.

$file->createDefaultContent(): array

Return type

array

Parent class

Kirby\Cms\File inherited from Kirby\Cms\ModelWithContent