$file->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
$file->createContent(array $content = [ ]): array
Parameters
| Name | Type | Default |
|---|---|---|
| $content | array |
[ ]
|
Return type
array
This method modifies the existing $file object it is applied to and returns it again.
Parent class
Kirby\Cms\File
inherited from Kirby\Cms\ModelWithContent