* Add reserved fields to documents * Add member configuration endpoint * Add reserved field to media configuration * Refactor to use service instead on hardcoded methods * Clean up, aligning * Update OpenApi --------- Co-authored-by: Elitsa <elm@umbraco.dk>
14 lines
427 B
C#
14 lines
427 B
C#
namespace Umbraco.Cms.Core.Models;
|
|
|
|
public class ContentPropertySettings
|
|
{
|
|
private readonly HashSet<string> _reservedFieldNames = new();
|
|
|
|
/// <summary>
|
|
/// Gets a set of standard names for fields that cannot be used for custom properties.
|
|
/// </summary>
|
|
public ISet<string> ReservedFieldNames => _reservedFieldNames;
|
|
|
|
public bool AddReservedFieldName(string name) => _reservedFieldNames.Add(name);
|
|
}
|