$file->contentFileData()
Store the template in addition to the other content.
$file->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.
$file->contentFileData(array $data, string|null $languageCode = null): array
Parameters
| Name | Type | Default |
|---|---|---|
| $datarequired | array |
no default value |
| $languageCode | stringornull |
null
|
Return type
array
This method modifies the existing $file object it is applied to and returns it again.