Move more models: template, macro, ObjectTypes

This commit is contained in:
Shannon
2020-05-20 12:10:17 +10:00
parent 8134a35fe0
commit 057aa9bc66
6 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ namespace Umbraco.Core.Models
/// <summary>
/// Returns true if the template is used as a layout for other templates (i.e. it has 'children')
/// </summary>
bool IsMasterTemplate { get; }
bool IsMasterTemplate { get; set; }
/// <summary>
/// returns the master template alias

View File

@@ -18,10 +18,10 @@ namespace Umbraco.Core.Models
private Lazy<int> _masterTemplateId;
public Template(IShortStringHelper shortStringHelper, string name, string alias)
: this(shortStringHelper, name, alias, (Func<File, string>) null)
: this(shortStringHelper, name, alias, null)
{ }
internal Template(IShortStringHelper shortStringHelper, string name, string alias, Func<File, string> getFileContent)
public Template(IShortStringHelper shortStringHelper, string name, string alias, Func<File, string> getFileContent)
: base(string.Empty, getFileContent)
{
_shortStringHelper = shortStringHelper;
@@ -60,7 +60,7 @@ namespace Umbraco.Core.Models
/// <summary>
/// Returns true if the template is used as a layout for other templates (i.e. it has 'children')
/// </summary>
public bool IsMasterTemplate { get; internal set; }
public bool IsMasterTemplate { get; set; }
public void SetMasterTemplate(ITemplate masterTemplate)
{