Notification documentation (#13207)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user