Files
Umbraco-CMS/src/Umbraco.Core/Notifications/ContentSendingToPublishNotification.cs
Alina-Magdalena Tincas 85747593cc Update v14 api docs with info from umbraco docs (#15977)
* update api docs

* small update
2024-04-11 11:19:23 +02:00

22 lines
681 B
C#

// Copyright (c) Umbraco.
// See LICENSE for more details.
using Umbraco.Cms.Core.Events;
using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Notifications;
/// <summary>
/// A notification that is used to trigger the IContentService when the SendToPublication method is called in the API.
/// </summary>
public sealed class ContentSendingToPublishNotification : CancelableObjectNotification<IContent>
{
public ContentSendingToPublishNotification(IContent target, EventMessages messages)
: base(target, messages)
{
}
/// <summary>
/// Getting the IContent object being sent to publish.
/// </summary>
public IContent Entity => Target;
}