Skip to content

Kirby 6.0.0

$modelWithContent->content()

Returns the content

$modelWithContent->content(string|null $languageCode = null): Content

Parameters

Name Type Default
$languageCode stringornull null

Return type

Kirby\Content\Content

Exceptions

Type Description
Kirby\Exception\NotFoundException If the language for the given code does not exist

Parent class

Kirby\Cms\ModelWithContent