From e5e9138ee87b1b469cab8e38f8fab41d68d3de06 Mon Sep 17 00:00:00 2001 From: sofietoft Date: Tue, 12 Nov 2024 12:56:25 +0100 Subject: [PATCH] Add notes about obsolete interfaces --- .../templating/modelsbuilder/understand-and-extend.md | 4 +++- 15/umbraco-cms/reference/webhooks/README.md | 4 +++- 15/umbraco-cms/reference/webhooks/expanding-webhook-events.md | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/15/umbraco-cms/reference/templating/modelsbuilder/understand-and-extend.md b/15/umbraco-cms/reference/templating/modelsbuilder/understand-and-extend.md index a4aa0928e1d..bd1313a126d 100644 --- a/15/umbraco-cms/reference/templating/modelsbuilder/understand-and-extend.md +++ b/15/umbraco-cms/reference/templating/modelsbuilder/understand-and-extend.md @@ -5,7 +5,9 @@ description: "Understand and extend modelsbuilder" # Understand and Extend -Models are generated as partial classes. In its most basic form, a model for content type `TextPage` ends up in a `TextPage.generated.cs` file and looks like: +Models are generated as partial classes. In its most basic form, a model for content type `TextPage` ends up in a `TextPage.generated.cs` file and looks like shown below. + +{% include "../../../.gitbook/includes/obsolete-warning-ipublishedsnapshotaccessor.md" %} ```csharp /// TextPage diff --git a/15/umbraco-cms/reference/webhooks/README.md b/15/umbraco-cms/reference/webhooks/README.md index a8e322961c7..d0352f28599 100644 --- a/15/umbraco-cms/reference/webhooks/README.md +++ b/15/umbraco-cms/reference/webhooks/README.md @@ -132,7 +132,9 @@ builder.WebhookEvents().Clear().AddCms(false); ## Replace Webhook Events -Sometimes it is desirable to modify one of the standard Umbraco webhooks, for example, to change the Payload. This can be done by adding a custom implementation, as shown in the code example below: +Sometimes it is desirable to modify one of the standard Umbraco webhooks, for example, to change the Payload. This can be done by adding a custom implementation, as shown in the code example below. + +{% include "../../.gitbook/includes/obsolete-warning-ipublishedsnapshotaccessor.md" %} ```csharp [WebhookEvent("Content Published", Constants.WebhookEvents.Types.Content)] diff --git a/15/umbraco-cms/reference/webhooks/expanding-webhook-events.md b/15/umbraco-cms/reference/webhooks/expanding-webhook-events.md index e63b2886841..f7eeea9368e 100644 --- a/15/umbraco-cms/reference/webhooks/expanding-webhook-events.md +++ b/15/umbraco-cms/reference/webhooks/expanding-webhook-events.md @@ -140,6 +140,8 @@ To leverage the `WebhookEventContentBase` class, follow If we take a look at the `ContentPublishedWebhookEvent`, we can see how these methods are overriden. + {% include "../../../.gitbook/includes/obsolete-warning-ipublishedsnapshotaccessor.md" %} + ```csharp protected override IEnumerable GetEntitiesFromNotification(ContentPublishedNotification notification) => notification.PublishedEntities;