Adds Sections() ordered collection to the Composition, so devs can ammend the collection, change order etc

This commit is contained in:
Warren Buckley
2019-01-22 14:59:32 +00:00
parent b54155d1c9
commit 9b9c9ef455

View File

@@ -9,6 +9,7 @@ using Umbraco.Web.PublishedCache;
using Umbraco.Web.Routing;
using Umbraco.Web.ContentApps;
using Umbraco.Web.Tour;
using Umbraco.Web.Trees;
// the namespace here is intentional - although defined in Umbraco.Web assembly,
// this class should be visible when using Umbraco.Core.Components, alongside
@@ -84,6 +85,13 @@ namespace Umbraco.Core.Components
public static UrlProviderCollectionBuilder UrlProviders(this Composition composition)
=> composition.WithCollectionBuilder<UrlProviderCollectionBuilder>();
/// <summary>
/// Gets the backoffice sections/applications collection builder.
/// </summary>
/// <param name="composition">The composition.</param>
public static BackOfficeSectionCollectionBuilder Sections(this Composition composition)
=> composition.WithCollectionBuilder<BackOfficeSectionCollectionBuilder>();
#endregion
#region Uniques