Skip to content

Kirby 5.0.4

FilePreview::factory()

Returns a file preview instance by going through all available handler classes and finding the first that accepts the file

FilePreview::factory(Kirby\Cms\File $file): Kirby\Panel\Ui\FilePreview

Parameters

Name Type Default
$filerequired Kirby\Cms\File no default value

Return type

Kirby\Panel\Ui\FilePreview

Parent class

Kirby\Panel\Ui\FilePreview