Skip to content

Commit

Permalink
[v15] Update obsoletion message for IPublishedContent.Parent and `I…
Browse files Browse the repository at this point in the history
…PublishedContent.Children` to better alternatives (#17419)

* Make block editor base classes public

* Update BlockEditorValues.cs

Change to trigger a new build for #16774

* Update IPublishedContent.cs

Provide better suggestions for alternatives to `Childrent` and `Parent`

* Updated obsolete message

---------

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>
  • Loading branch information
mattbrailsford and kjac authored Nov 4, 2024
1 parent 7faceb3 commit 42f0a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public interface IPublishedContent : IPublishedElement
/// Gets the parent of the content item.
/// </summary>
/// <remarks>The parent of root content is <c>null</c>.</remarks>
[Obsolete("Please use IDocumentNavigationQueryService.TryGetParentKey() instead. Scheduled for removal in V16.")]
[Obsolete("Please use either the IPublishedContent.Parent<>() extension method in the Umbraco.Extensions namespace, or IDocumentNavigationQueryService if you only need keys. Scheduled for removal in V16.")]
IPublishedContent? Parent { get; }

/// <summary>
Expand Down Expand Up @@ -142,6 +142,6 @@ public interface IPublishedContent : IPublishedElement
/// <summary>
/// Gets the children of the content item that are available for the current culture.
/// </summary>
[Obsolete("Please use IDocumentNavigationQueryService.TryGetChildrenKeys() instead. Scheduled for removal in V16.")]
[Obsolete("Please use either the IPublishedContent.Children() extension method in the Umbraco.Extensions namespace, or IDocumentNavigationQueryService if you only need keys. Scheduled for removal in V16.")]
IEnumerable<IPublishedContent> Children { get; }
}

0 comments on commit 42f0a5d

Please sign in to comment.