Support culture in content Saving and Publishing events

This commit is contained in:
Stephan
2019-01-31 14:03:09 +01:00
parent a6f9598a23
commit 3199aa6693
15 changed files with 431 additions and 67 deletions

View File

@@ -177,5 +177,29 @@ namespace Umbraco.Core.Models
/// <para>Unpublishing must be finalized via the content service SavePublishing method.</para>
/// </remarks>
void UnpublishCulture(string culture = "*");
/// <summary>
/// Determines whether a culture is being published, during a Publishing event.
/// </summary>
/// <remarks>Outside of a Publishing event handler, the returned value is unspecified.</remarks>
bool IsPublishingCulture(string culture);
/// <summary>
/// Determines whether a culture is being unpublished, during a Publishing event.
/// </summary>
/// <remarks>Outside of a Publishing event handler, the returned value is unspecified.</remarks>
bool IsUnpublishingCulture(string culture);
/// <summary>
/// Determines whether a culture has been published, during a Published event.
/// </summary>
/// <remarks>Outside of a Published event handler, the returned value is unspecified.</remarks>
bool HasPublishedCulture(string culture);
/// <summary>
/// Determines whether a culture has been unpublished, during a Published event.
/// </summary>
/// <remarks>Outside of a Published event handler, the returned value is unspecified.</remarks>
bool HasUnpublishedCulture(string culture);
}
}