diff --git a/src/Nikcio.UHeadless/UmbracoElements/Properties/EditorsValues/BlockList/Models/BasicBlockListModel.cs b/src/Nikcio.UHeadless/UmbracoElements/Properties/EditorsValues/BlockList/Models/BasicBlockListModel.cs index 02defb51..b6e6c25d 100644 --- a/src/Nikcio.UHeadless/UmbracoElements/Properties/EditorsValues/BlockList/Models/BasicBlockListModel.cs +++ b/src/Nikcio.UHeadless/UmbracoElements/Properties/EditorsValues/BlockList/Models/BasicBlockListModel.cs @@ -21,6 +21,12 @@ public class BasicBlockListModel : PropertyValue [GraphQLDescription("Gets the blocks of a block list model.")] public virtual List? Blocks { get; set; } + /// + /// Gets the editor alias of the block list model + /// + [GraphQLDescription("Gets the editor alias of the block list model.")] + public virtual string EditorAlias { get; set; } + /// public BasicBlockListModel(CreatePropertyValue createPropertyValue, IDependencyReflectorFactory dependencyReflectorFactory) : base(createPropertyValue) { var value = (BlockListModel) createPropertyValue.Property.GetValue(); @@ -28,6 +34,7 @@ public BasicBlockListModel(CreatePropertyValue createPropertyValue, IDependencyR var type = typeof(T); return dependencyReflectorFactory.GetReflectedType(type, new object[] { new CreateBlockListItem(createPropertyValue.Content, blockListItem, createPropertyValue.Culture) }); }).OfType().ToList(); + EditorAlias = createPropertyValue.Property.PropertyType.EditorAlias; } } }