Class CatalogLanguageSettingsResolver

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Extends the default language settings resolver with logic for catalog content. The logic is as follows:

  • No replacement languages
  • No fallback languages
  • All languages that are enabled for a catalog are active, the others are not.
Inheritance
System.Object
CatalogLanguageSettingsResolver
Implements
EPiServer.Core.IContentLanguageSettingsResolver
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()
Namespace: EPiServer.Commerce.Catalog.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class CatalogLanguageSettingsResolver : IContentLanguageSettingsResolver

Constructors

CatalogLanguageSettingsResolver(IContentLanguageSettingsResolver, ServiceAccessor<IContentLoader>, ILanguageBranchRepository, ReferenceConverter, IObjectInstanceCache)

Declaration
public CatalogLanguageSettingsResolver(IContentLanguageSettingsResolver defaultImplementation, ServiceAccessor<IContentLoader> contentLoaderAccessor, ILanguageBranchRepository languageBranchRepository, ReferenceConverter referenceConverter, IObjectInstanceCache objectInstanceCache)
Parameters
Type Name Description
EPiServer.Core.IContentLanguageSettingsResolver defaultImplementation
EPiServer.ServiceLocation.ServiceAccessor<EPiServer.IContentLoader> contentLoaderAccessor
EPiServer.DataAbstraction.ILanguageBranchRepository languageBranchRepository
ReferenceConverter referenceConverter
EPiServer.Framework.Cache.IObjectInstanceCache objectInstanceCache

Methods

Resolve(ContentReference)

Gets the settings for all languages for the specified content link.

Declaration
public IEnumerable<ContentLanguageSetting> Resolve(ContentReference contentLink)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink

The content link.

Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.ContentLanguageSetting>

An IEnumerable{ContentLanguageSetting} with the language settings for the given content.

Implements

EPiServer.Core.IContentLanguageSettingsResolver