Skip to content

Kirby 5.0.1

$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

Parent class

Kirby\Cms\File