Class DefaultContentAreaItemAttributeAssembler
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Constructs client side edit activation attributes for ContentFragments.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
[ServiceConfiguration(typeof(IContentAreaItemAttributeAssembler))]
public class DefaultContentAreaItemAttributeAssembler : IContentAreaItemAttributeAssembler
Constructors
DefaultContentAreaItemAttributeAssembler(IObjectSerializerFactory, IContentAreaLoader)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the DefaultContentAreaItemAttributeAssembler class.
Declaration
public DefaultContentAreaItemAttributeAssembler(IObjectSerializerFactory serializerFactory, IContentAreaLoader contentAreaLoader)
Parameters
Type | Name | Description |
---|---|---|
IObjectSerializerFactory | serializerFactory | The serializer factory. Used when serializing some attribute values into JSON |
IContentAreaLoader | contentAreaLoader | The registered context area loader |
Methods
AppendPersonalizationAttributes(IDictionary<String, String>, ContentAreaItem)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Appends the personalization attributes to the attributes collection.
Declaration
protected virtual void AppendPersonalizationAttributes(IDictionary<string, string> attributes, ContentAreaItem contentAreaItem)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | attributes | The attribute collection to which the persionalization attibutes are appended. |
ContentAreaItem | contentAreaItem | The fragment to create personalization attributes for. |
GetAttributes(ContentAreaItem, Boolean, Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets a dictionary containing markup attributes necessary for supporting editable ContentFragments in rendered markup.
Declaration
public virtual IDictionary<string, string> GetAttributes(ContentAreaItem contentAreaItem, bool isRenderedInEditMode, bool hasRenderer)
Parameters
Type | Name | Description |
---|---|---|
ContentAreaItem | contentAreaItem | The fragment to assemble attributes for. |
System.Boolean | isRenderedInEditMode | set to |
System.Boolean | hasRenderer | A value stating whether a renderer exists for the fragment. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | A dictionary with attribute names and values for a content fragment |