Class MacrosTreeController
- Namespace
- Umbraco.Cms.Web.BackOffice.Trees
- Assembly
- Umbraco.Web.BackOffice.dll
[Authorize(Policy = "TreeAccessMacros")]
[Tree("settings", "macros", TreeTitle = "Macros", SortOrder = 4, TreeGroup = "settingsGroup")]
public class MacrosTreeController : TreeController, ITree
- Inheritance
-
MacrosTreeController
- Implements
-
ITree
- Inherited Members
Constructors
MacrosTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, IMenuItemCollectionFactory, IMacroService, IEventAggregator)
public MacrosTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IMenuItemCollectionFactory menuItemCollectionFactory, IMacroService macroService, IEventAggregator eventAggregator)
Parameters
localizedTextServiceILocalizedTextServiceumbracoApiControllerTypeCollectionUmbracoApiControllerTypeCollectionmenuItemCollectionFactoryIMenuItemCollectionFactorymacroServiceIMacroServiceeventAggregatorIEventAggregator
Methods
CreateRootNode(FormCollection)
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>