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 SourceFromArtifact(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}}.
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.