Skip to content

Kirby 5.0.1

$fileVersion->asset()

Returns the file asset object. A new object will be created if it doesn't exist yet. The instance will be cached to avoid multiple instantiations, when calling asset methods.

$fileVersion->asset(array|string|null $props = null): Kirby\Filesystem\File

Parameters

Name Type Default
$props arrayorstringornull null

Return type

Kirby\Filesystem\File

Parent class

Kirby\Cms\FileVersion