Skip to content

Kirby 6.0.0

$modelWithContent->createContent()

Creates the content for a new model by merging the given values with the defaults from the model's blueprint and converting all of them to their storable values

$modelWithContent->createContent(array $content = []): array

Parameters

Name Type Default
$content array<string, mixed> []

Return type

array<string, mixed>

Parent class

Kirby\Cms\ModelWithContent