Skip to content

Kirby 5.0.4

FilePreview::accepts()

Returns true if this class should handle the preview of this file

FilePreview::accepts(Kirby\Cms\File $file): bool

Parameters

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

Return type

bool

Parent class

Kirby\Panel\Ui\FilePreview