Class WebhooksTreeController
- Namespace
- Umbraco.Cms.Web.BackOffice.Trees
- Assembly
- Umbraco.Web.BackOffice.dll
[Authorize(Policy = "TreeAccessWebhooks")]
[Tree("settings", "webhooks", SortOrder = 9, TreeGroup = "settingsGroup")]
public class WebhooksTreeController : TreeController, ITree
- Inheritance
-
WebhooksTreeController
- Implements
-
ITree
- Inherited Members
Constructors
WebhooksTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, IEventAggregator, IMenuItemCollectionFactory)
public WebhooksTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IEventAggregator eventAggregator, IMenuItemCollectionFactory menuItemCollectionFactory)
Parameters
localizedTextServiceILocalizedTextServiceumbracoApiControllerTypeCollectionUmbracoApiControllerTypeCollectioneventAggregatorIEventAggregatormenuItemCollectionFactoryIMenuItemCollectionFactory
Methods
CreateRootNode(FormCollection)
Helper method to create a root model for a tree
protected override ActionResult<TreeNode?> CreateRootNode(FormCollection queryStrings)
Parameters
queryStringsFormCollection
Returns
- ActionResult<TreeNode>
GetMenuForNode(string, FormCollection)
protected override ActionResult<MenuItemCollection> GetMenuForNode(string id, FormCollection queryStrings)
Parameters
idstringqueryStringsFormCollection
Returns
- ActionResult<MenuItemCollection>
GetTreeNodes(string, FormCollection)
protected override ActionResult<TreeNodeCollection> GetTreeNodes(string id, FormCollection queryStrings)
Parameters
idstringqueryStringsFormCollection
Returns
- ActionResult<TreeNodeCollection>