Search Results for

    Show / Hide Table of Contents
    View Source

    Class CurrentDynamicRootOriginFinder

    An origin finder that uses the current content item from the context as the origin. This finder handles the "Current" origin type and extends ByKeyDynamicRootOriginFinder.

    Inheritance
    object
    ByKeyDynamicRootOriginFinder
    Namespace: Umbraco.Cms.Core.DynamicRoot.Origin
    Assembly: Umbraco.Core.dll
    Syntax
    public class CurrentDynamicRootOriginFinder : ByKeyDynamicRootOriginFinder, IDynamicRootOriginFinder

    Constructors

    View Source

    CurrentDynamicRootOriginFinder(IEntityService)

    Initializes a new instance of the CurrentDynamicRootOriginFinder class.

    Declaration
    public CurrentDynamicRootOriginFinder(IEntityService entityService)
    Parameters
    Type Name Description
    IEntityService entityService

    The entity service used to retrieve entities by key.

    Properties

    View Source

    SupportedOriginType

    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 Source

    FindOriginKey(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 null if this finder does not support the query or cannot find the origin.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX