Class ObsoletedIUpdateCurrentLanguageExtensions
Contains extension methods for IUpdateCurrentLanguage
Inheritance
System.Object
ObsoletedIUpdateCurrentLanguageExtensions
Namespace: EPiServer.Globalization
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
public static class ObsoletedIUpdateCurrentLanguageExtensions : Object
Methods
UpdateLanguage(IUpdateCurrentLanguage, String)
Updates the current language for the current context (e.g. current web request) Obseleted in favor of SetRoutedContent
Declaration
public static void UpdateLanguage(this IUpdateCurrentLanguage iUpdateCurrentLanguage, string languageId)
Parameters
Type | Name | Description |
---|---|---|
IUpdateCurrentLanguage | iUpdateCurrentLanguage | The target |
System.String | languageId | The language id. |
UpdateReplacementLanguage(IUpdateCurrentLanguage, IContent, String)
Updates current language settings if a replacement language is used. Obseleted in favor of SetRoutedContent
Declaration
public static void UpdateReplacementLanguage(this IUpdateCurrentLanguage iUpdateCurrentLanguage, IContent currentContent, string requestedLanguage)
Parameters
Type | Name | Description |
---|---|---|
IUpdateCurrentLanguage | iUpdateCurrentLanguage | The target |
IContent | currentContent | The current content that we need to check for replacement language handling. |
System.String | requestedLanguage | The requested language. |