2021-02-18 11:06:02 +01:00
|
|
|
using Umbraco.Cms.Core.Collections;
|
2018-03-27 16:18:51 +02:00
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
namespace Umbraco.Cms.Core.Features
|
2018-03-27 16:18:51 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents disabled features.
|
|
|
|
|
/// </summary>
|
2020-05-20 16:43:06 +10:00
|
|
|
public class DisabledFeatures
|
2018-03-27 16:18:51 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="DisabledFeatures"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DisabledFeatures()
|
|
|
|
|
{
|
2020-02-17 14:58:34 +01:00
|
|
|
Controllers = new TypeList<IUmbracoFeature>();
|
2018-03-27 16:18:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the disabled controllers.
|
|
|
|
|
/// </summary>
|
2020-02-17 14:58:34 +01:00
|
|
|
public TypeList<IUmbracoFeature> Controllers { get; }
|
2018-02-27 15:47:47 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Disables the device preview feature of previewing.
|
|
|
|
|
/// </summary>
|
2018-03-14 13:56:49 +11:00
|
|
|
public bool DisableDevicePreview { get; set; }
|
2020-02-17 14:58:34 +01:00
|
|
|
|
2018-03-13 14:31:30 +11:00
|
|
|
/// <summary>
|
|
|
|
|
/// If true, all references to templates will be removed in the back office and routing
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool DisableTemplates { get; set; }
|
2018-03-14 12:25:37 +11:00
|
|
|
|
2018-03-27 16:18:51 +02:00
|
|
|
}
|
|
|
|
|
}
|