November Happy Hour will be moved to Thursday December 5th.

Class ContentLanguageSettingsHandlerExtensions

Extends IContentLanguageSettingsHandler with convenient methods

Inheritance
System.Object
ContentLanguageSettingsHandlerExtensions
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.Core
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public static class ContentLanguageSettingsHandlerExtensions

Methods

GetClosestSetting(IContentLanguageSettingsHandler, ContentReference)

Gets the content link for where the language settings is defined

Declaration
public static ContentReference GetClosestSetting(this IContentLanguageSettingsHandler contentLanguageSettingsHandler, ContentReference contentLink)
Parameters
Type Name Description
IContentLanguageSettingsHandler contentLanguageSettingsHandler

the hanlder that is being extended

ContentReference contentLink

The content link to determine where settings is defined for

Returns
Type Description
ContentReference

The content link where settings is defined or null if no settings are defined

Remarks

If settings is not defined on specified content link the ancestor chain is traversed until a setting is found.