Skip to content

Kirby 6.0.0

$asset->mediaRoot()

Returns the absolute path to the file in the public media folder

$asset->mediaRoot(string|null $filename = null): string

Parameters

Name Type Default
$filename stringornull null

Return type

string

Parent class

Kirby\Filesystem\Asset