Skip to content

Kirby 4.4.1

$file->asset()

Returns the file asset object

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

Parameters

Name Type Default
$props array|string|null null

Return type

Kirby\Filesystem\File

Parent class

Kirby\Cms\File