Revert "Merge IContentTypeWithHistoryCleanup with IContentType.cs"

This reverts commit 94eb49cdb6.
This commit is contained in:
Nikolaj Geisle
2022-05-23 10:33:02 +02:00
parent 94eb49cdb6
commit 9719f8ac56
8 changed files with 31 additions and 18 deletions

View File

@@ -890,7 +890,7 @@ namespace Umbraco.Cms.Infrastructure.Packaging
UpdateContentTypesPropertyGroups(contentType, documentType.Element("Tabs"));
UpdateContentTypesProperties(contentType, documentType.Element("GenericProperties"));
if (contentType is IContentType withCleanup)
if (contentType is IContentTypeWithHistoryCleanup withCleanup)
{
UpdateHistoryCleanupPolicy(withCleanup, documentType.Element("HistoryCleanupPolicy"));
}
@@ -898,7 +898,7 @@ namespace Umbraco.Cms.Infrastructure.Packaging
return contentType;
}
private void UpdateHistoryCleanupPolicy(IContentType withCleanup, XElement? element)
private void UpdateHistoryCleanupPolicy(IContentTypeWithHistoryCleanup withCleanup, XElement? element)
{
if (element == null)
{