Skip to content

Kirby 4.4.1

$site->content()

Returns the content

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

Parameters

Name Type Default
$languageCode string|null null

Return type

Kirby\Content\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