Skip to content

Kirby 5.6.0

$page->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

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

Parameters

Name Type Default
$content array [ ]

Return type

array

This method modifies the existing $page object it is applied to and returns it again.

Parent class

Kirby\Cms\Page inherited from Kirby\Cms\ModelWithContent