* Improve getting and initializing new block value layouts * Remove unnecessary generic type constraints * Add and use new block value/layout item constructors in tests * Removed GetLayouts that did not make sense * Added constructor to BlockItemData to simplify explicit usages --------- Co-authored-by: kjac <kja@umbraco.dk>
15 lines
338 B
C#
15 lines
338 B
C#
namespace Umbraco.Cms.Core.Models.Blocks;
|
|
|
|
public class BlockGridLayoutAreaItem
|
|
{
|
|
public Guid Key { get; set; } = Guid.Empty;
|
|
|
|
public BlockGridLayoutItem[] Items { get; set; } = Array.Empty<BlockGridLayoutItem>();
|
|
|
|
public BlockGridLayoutAreaItem()
|
|
{ }
|
|
|
|
public BlockGridLayoutAreaItem(Guid key)
|
|
=> Key = key;
|
|
}
|