Skip to content

Kirby 3.8.4

$site->content()

Returns the content

$site->content(string $languageCode = null): Kirby\Cms\Content

Parameters

Name Type Default
$languageCode string null

Return type

Kirby\Cms\Content

Exceptions

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

Parent class

Kirby\Cms\Site inherited from Kirby\Cms\ModelWithContent