Class ParentDynamicRootOriginFinder
An origin finder that uses the parent content item from the context as the origin. This finder handles the "Parent" origin type and extends ByKeyDynamicRootOriginFinder.
Namespace: Umbraco.Cms.Core.DynamicRoot.Origin
Assembly: Umbraco.Core.dll
Syntax
public class ParentDynamicRootOriginFinder : ByKeyDynamicRootOriginFinder, IDynamicRootOriginFinder
Constructors
View SourceParentDynamicRootOriginFinder(IEntityService)
Initializes a new instance of the ParentDynamicRootOriginFinder class.
Declaration
public ParentDynamicRootOriginFinder(IEntityService entityService)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntityService | entityService | The entity service used to retrieve entities by key. |
Properties
View SourceSupportedOriginType
Gets or sets the origin type alias that this finder supports.
Declaration
protected override string SupportedOriginType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceFindOriginKey(DynamicRootNodeQuery)
Attempts to find the origin content key based on the specified query.
Declaration
public override Guid? FindOriginKey(DynamicRootNodeQuery query)
Parameters
| Type | Name | Description |
|---|---|---|
| DynamicRootNodeQuery | query |
Returns
| Type | Description |
|---|---|
| Guid? | The unique identifier of the origin content, or |