Adds Sections() ordered collection to the Composition, so devs can ammend the collection, change order etc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user