Remove parameter value/return nullability in IImageSourceParser, ILocalLinkParser and IMacroParser (#15130)
* Align nullability of ILocalLinkParser with other rich text content parsers (IMacroParser and IImageSourceParser). * Remove value/return nullability in IImageSourceParser, ILocalLinkParser and IMacroParser --------- Co-authored-by: Ronald Barendse <ronald@barend.se>
This commit is contained in:
@@ -12,7 +12,7 @@ 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.
|
||||
@@ -20,5 +20,5 @@ public interface IImageSourceParser
|
||||
/// <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);
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user