Files
Umbraco-CMS/src/Umbraco.Web.BackOffice/Trees/RootNodeRenderingNotification.cs
Mole 2bf86acf38 V9: Place notifications in the same namespace (#10231)
* Gather all notifications in Umbraco.Cms.Core.Notifications

* Rename notifications to match convention

* Move and rename missed notifications

* Move the three remaining public notification into Umbraco.Cms.Core.Notifications
2021-05-11 14:33:49 +02:00

34 lines
964 B
C#

using Microsoft.AspNetCore.Http;
using Umbraco.Cms.Core.Trees;
namespace Umbraco.Cms.Core.Notifications
{
/// <summary>
/// A notification that allows developer to modify the root tree node that is being rendered
/// </summary>
public class RootNodeRenderingNotification : INotification
{
/// <summary>
/// The root node being rendered
/// </summary>
public TreeNode Node { get; }
/// <summary>
/// The alias of the tree the menu is rendering for
/// </summary>
public string TreeAlias { get; }
/// <summary>
/// The query string of the current request
/// </summary>
public FormCollection QueryString { get; }
public RootNodeRenderingNotification(TreeNode node, FormCollection queryString, string treeAlias)
{
Node = node;
QueryString = queryString;
TreeAlias = treeAlias;
}
}
}