Class ContentFragmentHandler
Fragment element handler responsible for parsing a fragment element and if a content is found create a new ContentFragment that matches it.
Inheritance
System.Object
ContentFragmentHandler
Implements
Namespace: EPiServer.Core.Html.StringParsing.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class ContentFragmentHandler : Object, IFragmentElementHandler
Constructors
ContentFragmentHandler(ContentFragmentFactory, ISecuredFragmentMarkupGeneratorFactory)
Initializes a new instance of the ContentFragmentHandler class.
Declaration
public ContentFragmentHandler(ContentFragmentFactory contentFragmentFactory, ISecuredFragmentMarkupGeneratorFactory securedFragmentMarkupGeneratorFactory)
Parameters
Type | Name | Description |
---|---|---|
ContentFragmentFactory | contentFragmentFactory | The content fragment factory. |
ISecuredFragmentMarkupGeneratorFactory | securedFragmentMarkupGeneratorFactory | The secured fragment markup generator factory. |
Methods
ParseElement(FragmentParserContext, ElementFragment)
Parses the provided element fragment into a string fragment and adds the result to the provided context
.
Declaration
public bool ParseElement(FragmentParserContext context, ElementFragment element)
Parameters
Type | Name | Description |
---|---|---|
FragmentParserContext | context | The current parser context that contains the source and where any results should be written. |
ElementFragment | element | The element that should be parsed. |
Returns
Type | Description |
---|---|
System.Boolean |
|