* 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
34 lines
964 B
C#
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;
|
|
}
|
|
}
|
|
}
|