Remove macros (#15794)

* Remove macros!

* Clean up snippets

* Add migration that deletes all macros

* Review comments
This commit is contained in:
Kenn Jacobsen
2024-02-29 15:11:06 +01:00
committed by GitHub
parent 47d07bf2d8
commit 976bca456e
160 changed files with 159 additions and 7340 deletions

View File

@@ -9,14 +9,13 @@ namespace Umbraco.Cms.Core.Models;
[DataContract(IsReference = true)]
public class PartialView : File, IPartialView
{
public PartialView(PartialViewType viewType, string path)
: this(viewType, path, null)
public PartialView(string path)
: this(path, null)
{
}
public PartialView(PartialViewType viewType, string path, Func<File, string?>? getFileContent)
: base(path, getFileContent) =>
ViewType = viewType;
public PartialViewType ViewType { get; set; }
public PartialView(string path, Func<File, string?>? getFileContent)
: base(path, getFileContent)
{
}
}