private function findRouteDefinitionByRouteName($routeName)
    {
        if ($routeName === $this->homeRouteName) {
            return $this->homeDefinition;
        }

        return $this->homeDefinition->findChildByRouteName($routeName);
    }
private function findRouteDefinitionByRouteName($routeName)
    {
        if ($routeName === $this->homeRouteName) {
            return $this->homeDefinition;
        }

        return $this->homeDefinition->findChildByRouteName($routeName);
    }
private function findRouteDefinitionByRouteName ( $ routeName ) { if ( $ routeName === $ this -> homeRouteName ) { return $ this -> homeDefinition ; } return $ this -> homeDefinition -> findChildByRouteName ( $ routeName ) ; }
Finds a RouteDefinition by route name

@param string $routeName

@return RouteDefinition
Finds a RouteDefinition by route name