Files
Umbraco-CMS/src/Umbraco.Web.BackOffice/Trees/TreeNodesRenderingNotification.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

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;
}
}
}