Class UmbracoPublishedContentCultureProvider
Sets the request culture to the culture of the
Inheritance
System.Object
Microsoft.AspNetCore.Localization.RequestCultureProvider
Namespace: Umbraco.Cms.Web.Common.Localization
Assembly: Umbraco.Web.Common.dll
Syntax
public class UmbracoPublishedContentCultureProvider : DynamicRequestCultureProviderBase, IRequestCultureProvider
Constructors
View SourceUmbracoPublishedContentCultureProvider(RequestLocalizationOptions)
Initializes a new instance of the UmbracoPublishedContentCultureProvider class.
Declaration
public UmbracoPublishedContentCultureProvider(RequestLocalizationOptions localizationOptions)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Builder.RequestLocalizationOptions | localizationOptions | The localization options. |
Methods
View SourceGetProviderCultureResult(HttpContext)
Gets the provider culture result.
Declaration
protected sealed override ProviderCultureResult GetProviderCultureResult(HttpContext httpContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | httpContext | The HTTP context. |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Localization.ProviderCultureResult | The provider culture result. |