Class SiteDynamicRootOriginFinder
An origin finder that locates the nearest ancestor content item with an assigned domain (site root). This finder handles the "Site" origin type and extends RootDynamicRootOriginFinder, falling back to the content tree root if no domain is found.
Namespace: Umbraco.Cms.Core.DynamicRoot.Origin
Assembly: Umbraco.Core.dll
Syntax
public class SiteDynamicRootOriginFinder : RootDynamicRootOriginFinder, IDynamicRootOriginFinder
Constructors
View SourceSiteDynamicRootOriginFinder(IEntityService, IDomainService)
Initializes a new instance of the SiteDynamicRootOriginFinder class.
Declaration
public SiteDynamicRootOriginFinder(IEntityService entityService, IDomainService domainService)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntityService | entityService | The entity service used to retrieve entities and traverse the content tree. |
| IDomainService | domainService | The domain service used to check for assigned domains on content items. |
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 |