Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ILocalLinkParser

    Provides methods to parse local link tags in property values.

    Namespace: Umbraco.Cms.Core.Deploy
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ILocalLinkParser

    Methods

    View Source

    FromArtifact(String)

    Parses an artifact property value and produces an Umbraco property value.

    Declaration
    string FromArtifact(string value)
    Parameters
    Type Name Description
    System.String value

    The artifact property value.

    Returns
    Type Description
    System.String

    The parsed value.

    Remarks

    Turns {{localLink:umb://{type}/{id}}} into {{localLink:1234}}.

    View Source

    ToArtifact(String, ICollection<Udi>)

    Parses an Umbraco property value and produces an artifact property value.

    Declaration
    string ToArtifact(string value, ICollection<Udi> dependencies)
    Parameters
    Type Name Description
    System.String value

    The property value.

    ICollection<Udi> dependencies

    A list of dependencies.

    Returns
    Type Description
    System.String

    The parsed value.

    Remarks

    Turns {{localLink:1234}} into {{localLink:umb://{type}/{id}}} and adds the corresponding udi to the dependencies.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • FromArtifact(String)
      • ToArtifact(String, ICollection<Udi>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX