Skip to content

Kirby 5.0.4

Url::path()

Returns the path for the given url

Url::path(array|string|null $url = null, bool $leadingSlash = false, bool $trailingSlash = false): string

Parameters

Name Type Default
$url arrayorstringornull null
$leadingSlash bool false
$trailingSlash bool false

Return type

string

Parent class

Kirby\Http\Url