Skip to content

Kirby 4.5.0

$asset->mediaRoot()

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

$asset->mediaRoot(): string

Return type

string

Parent class

Kirby\Filesystem\Asset