Url::path()
Returns the path for the given url
Url::path(string|array|null $url = null, bool $leadingSlash = false, bool $trailingSlash = false): string
Parameters
| Name | Type | Default |
|---|---|---|
| $url | string|array|null |
null |
| $leadingSlash | bool |
false |
| $trailingSlash | bool |
false |
Return type
string