Skip to content

Kirby 6.0.0

AudioFilePreview::factory()

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

AudioFilePreview::factory() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

AudioFilePreview::factory(File $file): AudioFilePreview

Parameters

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

Return type

Kirby\Panel\Ui\FilePreview\AudioFilePreview

Parent class

Kirby\Panel\Ui\FilePreview\AudioFilePreview inherited from Kirby\Panel\Ui\FilePreview