public function baseRoute($route)
    {
        if(strpos($route, '@') === 0) {
            $route = substr($route, 1, strlen($route)-1);
        } else {
            $baseRoute = $this->route->getParentRouteName();
            $route		= $baseRoute ? $baseRoute.'.'.$route : $route;
        }

        return $route;
    }
public function baseRoute($route)
    {
        if(strpos($route, '@') === 0) {
            $route = substr($route, 1, strlen($route)-1);
        } else {
            $baseRoute = $this->route->getParentRouteName();
            $route		= $baseRoute ? $baseRoute.'.'.$route : $route;
        }

        return $route;
    }
public function baseRoute ( $ route ) { if ( strpos ( $ route , '@' ) === 0 ) { $ route = substr ( $ route , 1 , strlen ( $ route ) - 1 ) ; } else { $ baseRoute = $ this -> route -> getParentRouteName ( ) ; $ route = $ baseRoute ? $ baseRoute . '.' . $ route : $ route ; } return $ route ; }
Base the given route.
Or return an absolute route, if absolute character was given at the beginning of the given string.
@param string $route
@return string
Base the given route . Or return an absolute route if absolute character was given at the beginning of the given string .