Skip to content

Commit

Permalink
AddDynamicRootStep
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjanwestendorp authored and nul800sebastiaan committed Dec 4, 2023
1 parent 8a65c00 commit d5c1375
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Core.Dashboards;
using Umbraco.Cms.Core.DynamicRoot.QuerySteps;
using Umbraco.Cms.Core.Manifest;
using Umbraco.Cms.Core.Mapping;
using Umbraco.Cms.Core.Media;
Expand Down Expand Up @@ -146,4 +147,16 @@ public static IUmbracoBuilder AddWebhookEvent<T>(this IUmbracoBuilder builder) w
builder.WebhookEvents().Append<T>();
return builder;
}

/// <summary>
/// Add an IDynamicRootQueryStep to the DynamicRootQueryStepCollectionBuilder.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="builder"></param>
/// <returns></returns>
public static IUmbracoBuilder AddDynamicRootStep<T>(this IUmbracoBuilder builder) where T : IDynamicRootQueryStep
{
builder.DynamicRootSteps().Append<T>();
return builder;
}
}

0 comments on commit d5c1375

Please sign in to comment.