$site->content()
Returns the content
$site->content(string|null $languageCode = null): Kirby\Content\Content
Parameters
Name | Type | Default |
---|---|---|
$languageCode | string ornull |
null
|
Return type
This method modifies the existing $site
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\Site
inherited from Kirby\Cms\ModelWithContent