$modelWithContent->contentFileData()
Prepares the content that should be written to the text file
$modelWithContent->contentFileData()
has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
$modelWithContent->contentFileData(array $data, string|null $languageCode = null): array
Parameters
Name | Type | Default |
---|---|---|
$datarequired | array |
no default value |
$languageCode | string ornull |
null
|
Return type
array
This method modifies the existing $modelwithcontent
object it is applied to and returns it again.