Networking\InitCmsBundle\Model\ContentRouteManager::getRouteByName PHP Метод

getRouteByName() публичный Метод

{@inheritDoc}
public getRouteByName ( $name, $parameters = [] )
    public function getRouteByName($name, $parameters = array())
    {
        $dynamicRouteName = self::ROUTE_GENERATE_DUMMY_NAME;
        if ($name !== $dynamicRouteName) {
            throw new RouteNotFoundException("Route name '{$name}' does not begin with the route name prefix '{ {$dynamicRouteName} }'");
        }
        $parameters['classType'] = $this->className;
        /** @var $route ContentRouteInterface */
        $route = $this->findContentRouteBy($parameters['route_params']);
        if (!$route) {
            throw new RouteNotFoundException("No route found for name '{$name}'");
        }
        $this->initializeContentRoute($route);
        return $route;
    }