Skip to content

Kirby 5.0.4

$modelWithContent->writeContent()

Low level data writer method to store the given data on disk or anywhere else

Deprecated in 5.0.0
Use ->version()->save() instead
$modelWithContent->writeContent(array $data, string|null $languageCode = null): bool

Parameters

Name Type Default
$datarequired array no default value
$languageCode stringornull null

Return type

bool

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

Parent class

Kirby\Cms\ModelWithContent