$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 | array orstring ornull |
null
|