From 42f0a5dc53d08c0d74093710dc30cc74cefa9874 Mon Sep 17 00:00:00 2001 From: Matt Brailsford Date: Mon, 4 Nov 2024 16:51:18 +0100 Subject: [PATCH] [v15] Update obsoletion message for `IPublishedContent.Parent` and `IPublishedContent.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 --- src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs b/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs index 8792baaecc..6fefac9040 100644 --- a/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs +++ b/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs @@ -100,7 +100,7 @@ public interface IPublishedContent : IPublishedElement /// Gets the parent of the content item. /// /// The parent of root content is null. - [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; } /// @@ -142,6 +142,6 @@ public interface IPublishedContent : IPublishedElement /// /// Gets the children of the content item that are available for the current culture. /// - [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 Children { get; } }