Skip to content

Commit 6315608

Browse files
Make ToArtifact/FromArtifact virtual
Makes the ToArtifact and FromArtifact virtual so that they can be overridden to allow for extra processing when used by custom block list editor prop editors that store additional info that would need more work performed on them
1 parent 8f3978a commit 6315608

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.Deploy.Contrib.Connectors/ValueConnectors/BlockEditorValueConnector.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public BlockEditorValueConnector(IContentTypeService contentTypeService, Lazy<Va
3737
_logger = logger;
3838
}
3939

40-
public string ToArtifact(object value, PropertyType propertyType, ICollection<ArtifactDependency> dependencies)
40+
public virtual string ToArtifact(object value, PropertyType propertyType, ICollection<ArtifactDependency> dependencies)
4141
{
4242
var svalue = value as string;
4343

@@ -117,7 +117,7 @@ public string ToArtifact(object value, PropertyType propertyType, ICollection<Ar
117117
return (string)value;
118118
}
119119

120-
public object FromArtifact(string value, PropertyType propertyType, object currentValue)
120+
public virtual object FromArtifact(string value, PropertyType propertyType, object currentValue)
121121
{
122122
if (string.IsNullOrWhiteSpace(value))
123123
{

0 commit comments

Comments
 (0)