Also exposes the SearchableTreeCollectionBuilder since that's required to be able to replace the ISearchableTree implementations

This commit is contained in:
Shannon
2019-02-14 11:08:39 +11:00
parent f385e1d01d
commit fd5a2f355b
2 changed files with 11 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ using Umbraco.Web.Media.EmbedProviders;
using Umbraco.Web.Mvc;
using Umbraco.Web.PublishedCache;
using Umbraco.Web.Routing;
using Umbraco.Web.Search;
using Umbraco.Web.Tour;
using Umbraco.Web.Trees;
using Current = Umbraco.Web.Composing.Current;
@@ -116,6 +117,15 @@ namespace Umbraco.Web
/// <returns></returns>
public static TreeCollectionBuilder Trees(this Composition composition)
=> composition.WithCollectionBuilder<TreeCollectionBuilder>();
/// <summary>
/// Gets the back office searchable tree collection builder
/// </summary>
/// <param name="composition"></param>
/// <returns></returns>
public static SearchableTreeCollectionBuilder SearchableTrees(this Composition composition)
=> composition.WithCollectionBuilder<SearchableTreeCollectionBuilder>();
#endregion
#region Uniques

View File

@@ -3,7 +3,7 @@ using Umbraco.Web.Trees;
namespace Umbraco.Web.Search
{
internal class SearchableTreeCollectionBuilder : LazyCollectionBuilderBase<SearchableTreeCollectionBuilder, SearchableTreeCollection, ISearchableTree>
public class SearchableTreeCollectionBuilder : LazyCollectionBuilderBase<SearchableTreeCollectionBuilder, SearchableTreeCollection, ISearchableTree>
{
protected override SearchableTreeCollectionBuilder This => this;