From 410fc1900d198144acc4a5d1e288389ae577f4b4 Mon Sep 17 00:00:00 2001 From: Andy Butland Date: Mon, 22 Sep 2025 13:34:44 +0200 Subject: [PATCH] Cherry-pick of #20129 to 16 (part 2). --- src/Umbraco.Web.Common/UmbracoHelper.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Umbraco.Web.Common/UmbracoHelper.cs b/src/Umbraco.Web.Common/UmbracoHelper.cs index 9b1a9c6275..e37080e9a5 100644 --- a/src/Umbraco.Web.Common/UmbracoHelper.cs +++ b/src/Umbraco.Web.Common/UmbracoHelper.cs @@ -309,8 +309,19 @@ public class UmbracoHelper /// If an identifier does not match an existing content, it will be missing in the returned value. public IEnumerable Content(IEnumerable ids) => _publishedContentQuery.Content(ids); + /// + /// Gets the documents at root. + /// + /// A collection of found at the root. public IEnumerable ContentAtRoot() => _publishedContentQuery.ContentAtRoot(); + /// + /// Gets the documents at root. + /// + /// The requested culture. + /// A collection of found at the root. + public IEnumerable ContentAtRoot(string? culture) => _publishedContentQuery.ContentAtRoot(culture); + #endregion #region Media