mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding missing content handler Restore events
This commit is contained in:
@@ -112,6 +112,14 @@ namespace Orchard.ContentManagement.Handlers {
|
|||||||
Filters.Add(new InlineStorageFilter<TPart> { OnExported = handler });
|
Filters.Add(new InlineStorageFilter<TPart> { OnExported = handler });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void OnRestoring<TPart>(Action<RestoreContentContext, TPart> handler) where TPart : class, IContent {
|
||||||
|
Filters.Add(new InlineStorageFilter<TPart> { OnRestoring = handler });
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void OnRestored<TPart>(Action<RestoreContentContext, TPart> handler) where TPart : class, IContent {
|
||||||
|
Filters.Add(new InlineStorageFilter<TPart> { OnRestored = handler });
|
||||||
|
}
|
||||||
|
|
||||||
protected void OnGetContentItemMetadata<TPart>(Action<GetContentItemMetadataContext, TPart> handler) where TPart : class, IContent {
|
protected void OnGetContentItemMetadata<TPart>(Action<GetContentItemMetadataContext, TPart> handler) where TPart : class, IContent {
|
||||||
Filters.Add(new InlineTemplateFilter<TPart> { OnGetItemMetadata = handler });
|
Filters.Add(new InlineTemplateFilter<TPart> { OnGetItemMetadata = handler });
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user