Files
Umbraco-CMS/src/Umbraco.Web.BackOffice/Trees/TreeNodesRenderingNotification.cs

37 lines
1.1 KiB
C#
Raw Normal View History

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
{
2021-02-23 16:20:22 +01:00
/// <summary>
/// The tree nodes being rendered
/// </summary>
public TreeNodeCollection Nodes { get; }
2021-02-23 16:20:22 +01:00
/// <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;
2021-02-23 16:20:22 +01:00
QueryString = queryString;
TreeAlias = treeAlias;
}
}
}