app\helpers\Utility::active PHP Method

active() public static method

[active description].
public static active ( string $route, string $active = 'active' ) : [string]
$route string [Route to compare ]
$active string [class]
return [string]
    public static function active($route, $active = 'active')
    {
        return parse_url(\Request::url(), PHP_URL_PATH) == $route ? $active : '';
    }