Skip to content

Kirby 5.0.4

$modelWithContent->readContent()

Read the content from the content file

Deprecated in 5.0.0
Use ->version()->read() instead
$modelWithContent->readContent(string|null $languageCode = null): array

Parameters

Name Type Default
$languageCode stringornull null

Return type

array

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

Parent class

Kirby\Cms\ModelWithContent