* 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
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using Microsoft.AspNetCore.Http;
|
|
using Umbraco.Cms.Core.Trees;
|
|
|
|
namespace Umbraco.Cms.Core.Notifications
|
|
{
|
|
/// <summary>
|
|
/// A notification that allows developers to modify the tree node collection that is being rendered
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Developers can add/remove/replace/insert/update/etc... any of the tree items in the collection.
|
|
/// </remarks>
|
|
public class TreeNodesRenderingNotification : INotification
|
|
{
|
|
/// <summary>
|
|
/// The tree nodes being rendered
|
|
/// </summary>
|
|
public TreeNodeCollection Nodes { get; }
|
|
|
|
/// <summary>
|
|
/// The query string of the current request
|
|
/// </summary>
|
|
public FormCollection QueryString { get; }
|
|
|
|
/// <summary>
|
|
/// The alias of the tree rendered
|
|
/// </summary>
|
|
public string TreeAlias { get; }
|
|
|
|
public TreeNodesRenderingNotification(TreeNodeCollection nodes, FormCollection queryString, string treeAlias)
|
|
{
|
|
Nodes = nodes;
|
|
QueryString = queryString;
|
|
TreeAlias = treeAlias;
|
|
}
|
|
}
|
|
}
|