Notification documentation (#13207)

This commit is contained in:
Roy Berris
2022-11-28 23:26:59 +01:00
committed by GitHub
parent f99378c5d3
commit 1ed24e78c8
8 changed files with 30 additions and 0 deletions

View File

@@ -6,6 +6,9 @@ using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Notifications;
/// <summary>
/// Called while publishing content but before content has been published. Cancel the operation to prevent the publish.
/// </summary>
public sealed class ContentPublishingNotification : CancelableEnumerableObjectNotification<IContent>
{
public ContentPublishingNotification(IContent target, EventMessages messages)
@@ -18,5 +21,8 @@ public sealed class ContentPublishingNotification : CancelableEnumerableObjectNo
{
}
/// <summary>
/// Gets a enumeration of <see cref="IContent"/> which are being published.
/// </summary>
public IEnumerable<IContent> PublishedEntities => Target;
}