Class ApplicationTreeController
Used to return tree root nodes
Inheritance
System.Object
Namespace: Umbraco.Web.Trees
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoTrees")]
public class ApplicationTreeController : UmbracoAuthorizedApiController, IDiscoverable
Constructors
View SourceApplicationTreeController(IGlobalSettings, IUmbracoContextAccessor, ISqlContext, ServiceContext, AppCaches, IProfilingLogger, IRuntimeState, ITreeService, ISectionService, UmbracoHelper)
Declaration
public ApplicationTreeController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, ITreeService treeService, ISectionService sectionService, UmbracoHelper umbracoHelper)
Parameters
Type | Name | Description |
---|---|---|
IGlobalSettings | globalSettings | |
IUmbracoContextAccessor | umbracoContextAccessor | |
ISqlContext | sqlContext | |
ServiceContext | services | |
AppCaches | appCaches | |
IProfilingLogger | logger | |
IRuntimeState | runtimeState | |
ITreeService | treeService | |
ISectionService | sectionService | |
UmbracoHelper | umbracoHelper |
Methods
View SourceGetApplicationTrees(String, String, FormDataCollection, TreeUse)
Returns the tree nodes for an application
Declaration
public async Task<TreeRootNode> GetApplicationTrees(string application, string tree, FormDataCollection queryStrings, TreeUse use = TreeUse.Main)
Parameters
Type | Name | Description |
---|---|---|
System.String | application | The application to load tree for |
System.String | tree | An optional single tree alias, if specified will only load the single tree for the request app |
FormDataCollection | queryStrings | |
TreeUse | use | Tree use. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TreeRootNode> |