protected function getRoutes()
    {
        if (0 === count($this->routes)) {
            return $this->router->getRouteCollection()->all();
        }

        $routes = [];
        foreach ($this->routes as $name) {
            $route = $this->router->getRouteCollection()->get($name);
            if (null !== $route) {
                $routes[$name] = $route;
            }
        }

        return $routes;
    }
protected function getRoutes()
    {
        if (0 === count($this->routes)) {
            return $this->router->getRouteCollection()->all();
        }

        $routes = [];
        foreach ($this->routes as $name) {
            $route = $this->router->getRouteCollection()->get($name);
            if (null !== $route) {
                $routes[$name] = $route;
            }
        }

        return $routes;
    }
protected function getRoutes ( ) { if ( 0 === count ( $ this -> routes ) ) { return $ this -> router -> getRouteCollection ( ) -> all ( ) ; } $ routes = [ ] ; foreach ( $ this -> routes as $ name ) { $ route = $ this -> router -> getRouteCollection ( ) -> get ( $ name ) ; if ( null !== $ route ) { $ routes [ $ name ] = $ route ; } } return $ routes ; }
Returns the list of routes that should be rendered.

@return Symfony\Component\Routing\Route[] List of routes that should be rendered.
Returns the list of routes that should be rendered .