Skip to content

Kirby 5.0.4

$page->content()

Returns the content

$page->content(string|null $languageCode = null): Kirby\Content\Content

Parameters

Name Type Default
$languageCode stringornull null

Return type

Kirby\Content\Content

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

Exceptions

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

Parent class

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