View Source
Class LanguageTreeController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[Authorize(Policy = "TreeAccessLanguages")]
public class LanguageTreeController : TreeController
Constructors
View Source
Declaration
public LanguageTreeController(ILocalizedTextService textService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IEventAggregator eventAggregator, IMenuItemCollectionFactory menuItemCollectionFactory)
Parameters
| Type |
Name |
Description |
| ILocalizedTextService |
textService |
|
| UmbracoApiControllerTypeCollection |
umbracoApiControllerTypeCollection |
|
| IEventAggregator |
eventAggregator |
|
| IMenuItemCollectionFactory |
menuItemCollectionFactory |
|
Methods
View Source
Helper method to create a root model for a tree
Declaration
protected override ActionResult<TreeNode?> CreateRootNode(FormCollection queryStrings)
Parameters
| Type |
Name |
Description |
| Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
| Type |
Description |
| Microsoft.AspNetCore.Mvc.ActionResult<System.Nullable<TreeNode>> |
|
View Source
Declaration
protected override ActionResult<MenuItemCollection> GetMenuForNode(string id, FormCollection queryStrings)
Parameters
| Type |
Name |
Description |
| System.String |
id |
|
| Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
| Type |
Description |
| Microsoft.AspNetCore.Mvc.ActionResult<MenuItemCollection> |
|
View Source
Declaration
protected override ActionResult<TreeNodeCollection> GetTreeNodes(string id, FormCollection queryStrings)
Parameters
| Type |
Name |
Description |
| System.String |
id |
|
| Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
| Type |
Description |
| Microsoft.AspNetCore.Mvc.ActionResult<TreeNodeCollection> |
|