Class DefaultContentAreaItemAttributeAssembler
Constructs client side edit activation attributes for Content
Inheritance
Implements
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.Cms.AspNetCore.HtmlHelpers.dll
Version: 12.0.3Syntax
public class DefaultContentAreaItemAttributeAssembler : Object, IContentAreaItemAttributeAssembler
Constructors
DefaultContentAreaItemAttributeAssembler(IContentAreaLoader)
Initializes a new instance of the Default
Declaration
public DefaultContentAreaItemAttributeAssembler(IContentAreaLoader contentAreaLoader)
Parameters
Type | Name | Description |
---|---|---|
IContent |
contentAreaLoader | The registered context area loader |
Methods
AppendPersonalizationAttributes(IDictionary<String, String>, ContentAreaItem)
Appends the personalization attributes to the attributes collection.
Declaration
protected virtual void AppendPersonalizationAttributes(IDictionary<string, string> attributes, ContentAreaItem contentAreaItem)
Parameters
Type | Name | Description |
---|---|---|
System. |
attributes | The attribute collection to which the persionalization attibutes are appended. |
Content |
contentAreaItem | The fragment to create personalization attributes for. |
GetAttributes(ContentAreaItem, Boolean, Boolean)
Gets a dictionary containing markup attributes necessary for supporting editable Content
Declaration
public virtual IDictionary<string, string> GetAttributes(ContentAreaItem contentAreaItem, bool isRenderedInEditMode, bool hasRenderer)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentAreaItem | The fragment to assemble attributes for. |
System. |
isRenderedInEditMode | set to |
System. |
hasRenderer | A value stating whether a renderer exists for the fragment. |
Returns
Type | Description |
---|---|
System. |
A dictionary with attribute names and values for a content fragment |