Cherry-pick of #20129 to 16 (part 2).

This commit is contained in:
Andy Butland
2025-09-22 13:34:44 +02:00
parent 2c3a2e2b2d
commit 410fc1900d

View File

@@ -309,8 +309,19 @@ public class UmbracoHelper
/// <remarks>If an identifier does not match an existing content, it will be missing in the returned value.</remarks>
public IEnumerable<IPublishedContent> Content(IEnumerable<int> ids) => _publishedContentQuery.Content(ids);
/// <summary>
/// Gets the documents at root.
/// </summary>
/// <returns>A collection of <see cref="IPublishedContent"/> found at the root.</returns>
public IEnumerable<IPublishedContent> ContentAtRoot() => _publishedContentQuery.ContentAtRoot();
/// <summary>
/// Gets the documents at root.
/// </summary>
/// <param name="culture">The requested culture.</param>
/// <returns>A collection of <see cref="IPublishedContent"/> found at the root.</returns>
public IEnumerable<IPublishedContent> ContentAtRoot(string? culture) => _publishedContentQuery.ContentAtRoot(culture);
#endregion
#region Media