Class ContentSoftLinkIndexer
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Parses and extracts soft links from content items. Used internally when content is published.
Inheritance
Inherited Members
Namespace: EPiServer.Core.Internal
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton)]
public class ContentSoftLinkIndexer
Constructors
ContentSoftLinkIndexer(TypeRelater, IEnumerable<IPropertySoftLinkIndexer>)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ContentSoftLinkIndexer class
Declaration
public ContentSoftLinkIndexer(TypeRelater typeRelater, IEnumerable<IPropertySoftLinkIndexer> propertyIndexers)
Parameters
Type | Name | Description |
---|---|---|
TypeRelater | typeRelater | |
System.Collections.Generic.IEnumerable<IPropertySoftLinkIndexer> | propertyIndexers |
Methods
GetLinks(IContent)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Extracts a list of soft links from a list of content items
Declaration
public virtual IList<SoftLink> GetLinks(IContent content)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The list of content to index. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<SoftLink> |
Remarks
For non-master languages only the links related to that language will be extracted
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the content is null or the ContentLink is null or empty |
IsIndexableProperty(PropertyData)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Determines if a specific property is softlink indexable
Declaration
public virtual bool IsIndexableProperty(PropertyData property)
Parameters
Type | Name | Description |
---|---|---|
PropertyData | property | The property to examine |
Returns
Type | Description |
---|---|
System.Boolean | true if property is softlink indexable else false |