Skip to content

Commit 5fd6943

Browse files
MikeAlhayekurbanit
authored andcommitted
Update the ContentElement constructor (OrchardCMS#15365)
1 parent 58c94b2 commit 5fd6943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OrchardCore/OrchardCore.ContentManagement.Abstractions/ContentElement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ public class ContentElement : IContent
1414
private Dictionary<string, ContentElement> _elements;
1515
private JsonDynamicObject _dynamicObject;
1616

17-
internal ContentElement() : this([])
17+
protected ContentElement() : this([])
1818
{
1919
}
2020

21-
internal ContentElement(JsonObject data) => Data = data;
21+
protected ContentElement(JsonObject data) => Data = data;
2222

2323
[JsonIgnore]
2424
protected internal Dictionary<string, ContentElement> Elements => _elements ??= [];

0 commit comments

Comments
 (0)