Move IPublishedContent.Url() to ext method

This commit is contained in:
Stephan
2019-04-24 14:25:41 +02:00
parent 25b8c8a565
commit bb0331e9cc
29 changed files with 105 additions and 169 deletions

View File

@@ -93,20 +93,6 @@ namespace Umbraco.Core.Models.PublishedContent
/// </remarks>
DateTime UpdateDate { get; }
/// <summary>
/// Gets the url of the content item.
/// </summary>
/// <remarks>
/// <para>If the content item is a document, then this method returns the url of the
/// document. If it is a media, then this methods return the media url for the
/// 'umbracoFile' property. Use the MediaUrl() method to get the media url for other
/// properties.</para>
/// <para>The value of this property is contextual. It depends on the 'current' request uri,
/// if any. In addition, when the content type is multi-lingual, this is the url for the
/// specified culture. Otherwise, it is the invariant url.</para>
/// </remarks>
string Url(string culture = null, UrlMode mode = UrlMode.Auto);
/// <summary>
/// Gets the culture date of the content item.
/// </summary>

View File

@@ -93,9 +93,6 @@ namespace Umbraco.Core.Models.PublishedContent
/// <inheritdoc />
public virtual DateTime UpdateDate => _content.UpdateDate;
/// <inheritdoc />
public virtual string Url(string culture = null, UrlMode mode = UrlMode.Auto) => _content.Url(culture, mode);
/// <inheritdoc />
public DateTime CultureDate(string culture = null) => _content.CultureDate(culture);