Class TourController
- Namespace
- Umbraco.Cms.Web.BackOffice.Controllers
- Assembly
- Umbraco.Web.BackOffice.dll
public class TourController : UmbracoAuthorizedJsonController
- Inheritance
-
TourController
- Inherited Members
Constructors
TourController(TourFilterCollection, IHostingEnvironment, IOptionsSnapshot<TourSettings>, IBackOfficeSecurityAccessor, IContentTypeService)
[Obsolete("Use other ctor - Will be removed in Umbraco 13")]
public TourController(TourFilterCollection filters, IHostingEnvironment hostingEnvironment, IOptionsSnapshot<TourSettings> tourSettings, IBackOfficeSecurityAccessor backofficeSecurityAccessor, IContentTypeService contentTypeService)
Parameters
filtersTourFilterCollectionhostingEnvironmentIHostingEnvironmenttourSettingsIOptionsSnapshot<TourSettings>backofficeSecurityAccessorIBackOfficeSecurityAccessorcontentTypeServiceIContentTypeService
TourController(TourFilterCollection, IHostingEnvironment, IOptionsSnapshot<TourSettings>, IBackOfficeSecurityAccessor, IContentTypeService, IWebHostEnvironment)
[ActivatorUtilitiesConstructor]
public TourController(TourFilterCollection filters, IHostingEnvironment hostingEnvironment, IOptionsSnapshot<TourSettings> tourSettings, IBackOfficeSecurityAccessor backofficeSecurityAccessor, IContentTypeService contentTypeService, IWebHostEnvironment webHostEnvironment)
Parameters
filtersTourFilterCollectionhostingEnvironmentIHostingEnvironmenttourSettingsIOptionsSnapshot<TourSettings>backofficeSecurityAccessorIBackOfficeSecurityAccessorcontentTypeServiceIContentTypeServicewebHostEnvironmentIWebHostEnvironment
Methods
GetTours()
public Task<IEnumerable<BackOfficeTourFile>> GetTours()
Returns
- Task<IEnumerable<BackOfficeTourFile>>
GetToursForDoctype(string)
Gets a tours for a specific doctype.
public Task<IEnumerable<BackOfficeTour>> GetToursForDoctype(string doctypeAlias)
Parameters
doctypeAliasstringThe documenttype alias
Returns
- Task<IEnumerable<BackOfficeTour>>
A Umbraco.Cms.Core.Models.BackOfficeTour