using Microsoft.AspNetCore.Http; using Umbraco.Cms.Core.Trees; namespace Umbraco.Cms.Core.Notifications; /// /// A notification that allows developers to modify the menu that is being rendered /// /// /// Developers can add/remove/replace/insert/update/etc... any of the tree items in the collection. /// public class MenuRenderingNotification : INotification { public MenuRenderingNotification(string nodeId, MenuItemCollection menu, FormCollection queryString, string treeAlias) { NodeId = nodeId; Menu = menu; QueryString = queryString; TreeAlias = treeAlias; } /// /// The tree node id that the menu is rendering for /// public string NodeId { get; } /// /// The alias of the tree the menu is rendering for /// public string TreeAlias { get; } /// /// The menu being rendered /// public MenuItemCollection Menu { get; } /// /// The query string of the current request /// public FormCollection QueryString { get; } }