public setActiveFromUrl ( string $url, string $root = '/' ) | ||
$url | string | The current request url. |
$root | string | If the link's URL is an exact match with the request root, the link won't be set active. This behavior is to avoid having home links active on every request. |