$file->content()
Returns the content
$file->content(?string $languageCode = null): Kirby\Cms\Content
Parameters
Name | Type | Default |
---|---|---|
$languageCode | string |null |
null |
Return type
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
If the language for the given code does not exist |
Parent class
Kirby\Cms\File
inherited from Kirby\Cms\ModelWithContent