Interface IMacroParser
Namespace: Umbraco.Cms.Core.Deploy
Assembly: Umbraco.Core.dll
Syntax
public interface IMacroParser
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 | Artifact property value. |
Returns
Type | Description |
---|---|
System.String | Parsed value. |
ReplaceAttributeValue(String, String, ICollection<Udi>, Direction)
Tries to replace the value of the attribute/parameter with a value containing a converted identifier.
Declaration
string ReplaceAttributeValue(string value, string editorAlias, ICollection<Udi> dependencies, Direction direction)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | Value to attempt to convert |
System.String | editorAlias | Alias of the editor used for the parameter |
ICollection<Udi> | dependencies | Collection to add dependencies to when performing ToArtifact |
Direction | direction | Indicates which action is being performed (to or from artifact) |
Returns
Type | Description |
---|---|
System.String | Value with converted identifiers |
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 | Property value. |
ICollection<Udi> | dependencies | A list of dependencies. |
Returns
Type | Description |
---|---|
System.String | Parsed value. |