Alloy.Helpers.UrlHelpers.GetPageRoute C# (CSharp) Method

GetPageRoute() public static method

public static GetPageRoute ( this requestContext, EPiServer.Core.ContentReference contentLink ) : RouteValueDictionary
requestContext this
contentLink EPiServer.Core.ContentReference
return RouteValueDictionary
        public static RouteValueDictionary GetPageRoute(this RequestContext requestContext, ContentReference contentLink)
        {
            var values = new RouteValueDictionary();
            values[RoutingConstants.NodeKey] = contentLink;
            values[RoutingConstants.LanguageKey] = ContentLanguage.PreferredCulture.Name;
            return values;
        }