Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Umbraco.Core/Deploy/IImageSourceParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ public interface IImageSourceParser
/// <param name="dependencies">A list of dependencies.</param>
/// <returns>The parsed value.</returns>
/// <remarks>Turns src="/media/..." into src="umb://media/..." and adds the corresponding udi to the dependencies.</remarks>
string? ToArtifact(string? value, ICollection<Udi> dependencies);
string ToArtifact(string value, ICollection<Udi> dependencies);

/// <summary>
/// Parses an artifact property value and produces an Umbraco property value.
/// </summary>
/// <param name="value">The artifact property value.</param>
/// <returns>The parsed value.</returns>
/// <remarks>Turns umb://media/... into /media/....</remarks>
string? FromArtifact(string? value);
string FromArtifact(string value);
}
4 changes: 2 additions & 2 deletions src/Umbraco.Core/Deploy/IMacroParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ public interface IMacroParser
/// <param name="value">Property value.</param>
/// <param name="dependencies">A list of dependencies.</param>
/// <returns>Parsed value.</returns>
string? ToArtifact(string? value, ICollection<Udi> dependencies);
string ToArtifact(string value, ICollection<Udi> dependencies);

/// <summary>
/// Parses an artifact property value and produces an Umbraco property value.
/// </summary>
/// <param name="value">Artifact property value.</param>
/// <returns>Parsed value.</returns>
string? FromArtifact(string? value);
string FromArtifact(string value);

/// <summary>
/// Tries to replace the value of the attribute/parameter with a value containing a converted identifier.
Expand Down