Skip to content

Kirby 4.4.1

$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;