Class ContentItemReferenceExtractor
- Namespace
- CMS.ContentEngine
- Assembly
- CMS.ContentEngine.dll
Extracts content item references from RichTextEditor form fields.
public class ContentItemReferenceExtractor : IFormFieldContentItemReferenceExtractor, IContentItemReferenceExtractor
- Inheritance
-
objectContentItemReferenceExtractor
- Implements
- Extension Methods
Constructors
ContentItemReferenceExtractor()
Initiliazes a new instance of the ContentItemReferenceExtractor class.
public ContentItemReferenceExtractor()
Methods
CanExtractReferences(FormFieldInfo)
Determines whether the references can be extracted for the given fieldInfo
.
public bool CanExtractReferences(FormFieldInfo fieldInfo)
Parameters
fieldInfo
FormFieldInfoForm field info.
Returns
- bool
Extract(object)
Extracts content item references from the given field value.
public IEnumerable<ContentItemReference> Extract(object fieldValue)
Parameters
fieldValue
objectField value.
Returns
- IEnumerable<ContentItemReference>