Skip to content

Kirby 6.0.0

$asset->mediaPath()

Returns the relative path starting at the media folder

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

Parameters

Name Type Default
$filename stringornull null

Return type

string

Parent class

Kirby\Filesystem\Asset