Skip to content

Kirby 6.0.0

$file->toArray()

Extended info for the array export by injecting the information from the asset.

$file->toArray(): array

Return type

array

Parent class

Kirby\Cms\File

Examples

if ($image = $page->image()):
    var_dump($image->toArray());
endif;