Skip to content

Commit e5e9138

Browse files
committed
Add notes about obsolete interfaces
1 parent 9bd6cd4 commit e5e9138

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

15/umbraco-cms/reference/templating/modelsbuilder/understand-and-extend.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ description: "Understand and extend modelsbuilder"
55

66
# Understand and Extend
77

8-
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:
8+
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.
9+
10+
{% include "../../../.gitbook/includes/obsolete-warning-ipublishedsnapshotaccessor.md" %}
911

1012
```csharp
1113
/// <summary>TextPage</summary>

15/umbraco-cms/reference/webhooks/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ builder.WebhookEvents().Clear().AddCms(false);
132132

133133
## Replace Webhook Events
134134

135-
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:
135+
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.
136+
137+
{% include "../../.gitbook/includes/obsolete-warning-ipublishedsnapshotaccessor.md" %}
136138

137139
```csharp
138140
[WebhookEvent("Content Published", Constants.WebhookEvents.Types.Content)]

15/umbraco-cms/reference/webhooks/expanding-webhook-events.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ To leverage the `WebhookEventContentBase<TNotification, TEntity>` class, follow
140140

141141
If we take a look at the `ContentPublishedWebhookEvent`, we can see how these methods are overriden.
142142

143+
{% include "../../../.gitbook/includes/obsolete-warning-ipublishedsnapshotaccessor.md" %}
144+
143145
```csharp
144146
protected override IEnumerable<IContent> GetEntitiesFromNotification(ContentPublishedNotification notification) => notification.PublishedEntities;
145147

0 commit comments

Comments
 (0)