Table of Contents

Class ContentItemReferenceExtractor

Namespace
CMS.ContentEngine
Assembly
CMS.ContentEngine.dll

Extracts content item references from RichTextEditor form fields.

public class ContentItemReferenceExtractor : IFormFieldContentItemReferenceExtractor, IContentItemReferenceExtractor
Inheritance
object
ContentItemReferenceExtractor
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 FormFieldInfo

Form field info.

Returns

bool

Extract(object)

Extracts content item references from the given field value.

public IEnumerable<ContentItemReference> Extract(object fieldValue)

Parameters

fieldValue object

Field value.

Returns

IEnumerable<ContentItemReference>