$file->toArray() Converts the media object to a plain PHP array kirby/src/Filesystem/File.php#L529 $file->toArray(): array Return type array<string, mixed> Parent class Kirby\Filesystem\File