renames ApplicationTree to just Tree
This commit is contained in:
@@ -4,15 +4,15 @@ using Umbraco.Core.Composing;
|
||||
namespace Umbraco.Web.Trees
|
||||
{
|
||||
//fixme - how will we allow users to modify these items? they will need to be able to change the ApplicationTree's registered (i.e. sort order, section)
|
||||
public class TreeCollectionBuilder : CollectionBuilderBase<TreeCollectionBuilder, TreeCollection, ApplicationTree>
|
||||
public class TreeCollectionBuilder : CollectionBuilderBase<TreeCollectionBuilder, TreeCollection, Tree>
|
||||
{
|
||||
private readonly List<ApplicationTree> _instances = new List<ApplicationTree>();
|
||||
private readonly List<Tree> _instances = new List<Tree>();
|
||||
|
||||
public void AddTree(ApplicationTree tree)
|
||||
public void AddTree(Tree tree)
|
||||
{
|
||||
_instances.Add(tree);
|
||||
}
|
||||
|
||||
protected override IEnumerable<ApplicationTree> CreateItems(IFactory factory) => _instances;
|
||||
protected override IEnumerable<Tree> CreateItems(IFactory factory) => _instances;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user