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 |