$modelWithContent->content()
Returns the content
$modelWithContent->content(string|null $languageCode = null): Kirby\Content\Content
Parameters
| Name | Type | Default |
|---|---|---|
| $languageCode | stringornull |
null
|
Return type
This method modifies the existing $modelwithcontent 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 |