Class CatalogContentLanguageSettingsHandler
This type/member supports the EPiServer infrastructure and is not intended to be
used directly from your code.
Extends the default language settings handler with logic for catalog content.
A language is enabled if it belongs to the catalog content ExistingLanguages.
Inheritance
System.Object
CatalogContentLanguageSettingsHandler
Implements
EPiServer.Core.IContentLanguageSettingsHandler
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public class CatalogContentLanguageSettingsHandler : IContentLanguageSettingsHandler
Constructors
CatalogContentLanguageSettingsHandler(IContentLanguageSettingsHandler, ServiceAccessor<IContentLoader>, ReferenceConverter)
Declaration
public CatalogContentLanguageSettingsHandler(IContentLanguageSettingsHandler defaultImplementation, ServiceAccessor<IContentLoader> contentLoaderAccessor, ReferenceConverter referenceConverter)
Parameters
Type |
Name |
Description |
EPiServer.Core.IContentLanguageSettingsHandler |
defaultImplementation |
The default implementation.
|
EPiServer.ServiceLocation.ServiceAccessor<EPiServer.IContentLoader> |
contentLoaderAccessor |
The content loader assessor.
|
ReferenceConverter |
referenceConverter |
The reference converter.
|
Methods
Get(ContentReference)
Declaration
public IEnumerable<ContentLanguageSetting> Get(ContentReference contentLink)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.ContentLanguageSetting> |
|
Get(ContentReference, String)
Declaration
public ContentLanguageSetting Get(ContentReference contentLink, string languageBranch)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
|
System.String |
languageBranch |
|
Returns
Type |
Description |
EPiServer.DataAbstraction.ContentLanguageSetting |
|
GetDefaultAllowedLanguage(ContentReference)
Declaration
public string GetDefaultAllowedLanguage(ContentReference contentLink)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
|
Returns
Type |
Description |
System.String |
|
GetFallbackLanguages(ContentReference, String)
Declaration
public string[] GetFallbackLanguages(ContentReference conentLink, string languageBranch)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
conentLink |
|
System.String |
languageBranch |
|
Returns
Type |
Description |
System.String[] |
|
IsLanguageAllowed(ContentReference, String)
Check if a language is enabled for a specific content.
Declaration
public bool IsLanguageAllowed(ContentReference contentLink, string languageBranch)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
The content link.
|
System.String |
languageBranch |
The language branch.
|
Returns
Type |
Description |
System.Boolean |
If the content is a catalog content, true if the language branch is one of ExistingLanguages, otherwise, false
If it is not, fallback to use the default implementation.
|
IsLanguageAllowedForCreation(ContentReference, String)
Declaration
public bool IsLanguageAllowedForCreation(ContentReference contentLink, string languageBranch)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
|
System.String |
languageBranch |
|
Returns
Type |
Description |
System.Boolean |
|
IsSettingsDefined(ContentReference)
Declaration
public bool IsSettingsDefined(ContentReference contentLink)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
|
Returns
Type |
Description |
System.Boolean |
|
MatchLanguageSettings(IContent, String)
Declaration
public LanguageSelectionSource MatchLanguageSettings(IContent content, string requestedLanguage)
Parameters
Type |
Name |
Description |
EPiServer.Core.IContent |
content |
|
System.String |
requestedLanguage |
|
Returns
Type |
Description |
EPiServer.Core.LanguageSelectionSource |
|
Implements
EPiServer.Core.IContentLanguageSettingsHandler