Skip to content

Kirby 4.5.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

Example

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