V15: Add back url segments again (#17390)

* Add logic for UrlSegments back

* Revert extension method back
This commit is contained in:
Nikolaj Geisle
2024-10-29 13:20:48 +01:00
committed by GitHub
parent 9ac2234121
commit 3ecd5b470f
4 changed files with 16 additions and 10 deletions

View File

@@ -31,6 +31,7 @@ namespace Umbraco.Cms.Core.Models.PublishedContent
public virtual string Name => this.Name(_variationContextAccessor);
/// <inheritdoc />
[Obsolete("Please use GetUrlSegment() on IDocumentUrlService instead. Scheduled for removal in V16.")]
public virtual string? UrlSegment => this.UrlSegment(_variationContextAccessor);
/// <inheritdoc />
@@ -75,7 +76,6 @@ namespace Umbraco.Cms.Core.Models.PublishedContent
[Obsolete("Please use TryGetParentKey() on IDocumentNavigationQueryService or IMediaNavigationQueryService instead. Scheduled for removal in V16.")]
public abstract IPublishedContent? Parent { get; }
// FIXME
/// <inheritdoc />
[Obsolete("Please use TryGetChildrenKeys() on IDocumentNavigationQueryService or IMediaNavigationQueryService instead. Scheduled for removal in V16.")]
public virtual IEnumerable<IPublishedContent> Children => GetChildren();