V11: Obsolete action to publish (#14208)

* Add obsolete message to ActionToPublish

* Obsolete handler for ContentSentTOPublishNotifcation
This commit is contained in:
Nikolaj Geisle
2023-05-11 13:58:57 +02:00
committed by GitHub
parent 36d72ac85c
commit e4c03e0d4e
2 changed files with 2 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ namespace Umbraco.Cms.Core.Actions;
/// <summary>
/// This action is invoked when children to a document is being sent to published (by an editor without publishrights).
/// </summary>
[Obsolete("Scheduled for removal in v13")]
public class ActionToPublish : IAction
{
/// <inheritdoc cref="IAction.ActionLetter"/>

View File

@@ -107,6 +107,7 @@ public sealed class UserNotificationsHandler :
_notifier.Notify(_actions.GetAction<ActionUpdate>(), updatedEntities.ToArray());
}
[Obsolete("Scheduled for removal in v13")]
public void Handle(ContentSentToPublishNotification notification) =>
_notifier.Notify(_actions.GetAction<ActionToPublish>(), notification.Entity);