Class BlockGridEditorDataConverter
Data converter for the block grid property editor.
Namespace: Umbraco.Cms.Core.Models.Blocks
Assembly: Umbraco.Core.dll
Syntax
public class BlockGridEditorDataConverter : BlockEditorDataConverter<BlockGridValue, BlockGridLayoutItem>
Constructors
View SourceBlockGridEditorDataConverter(IJsonSerializer)
Initializes a new instance of the BlockGridEditorDataConverter class.
Declaration
public BlockGridEditorDataConverter(IJsonSerializer jsonSerializer)
Parameters
| Type | Name | Description |
|---|---|---|
| IJsonSerializer | jsonSerializer | The JSON serializer. |
Methods
View SourceGetBlockReferences(IEnumerable<BlockGridLayoutItem>)
Return the collection of IBlockReference from the block editor's Layout
Declaration
protected override IEnumerable<ContentAndSettingsReference> GetBlockReferences(IEnumerable<BlockGridLayoutItem> layout)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<BlockGridLayoutItem> | layout |
Returns
| Type | Description |
|---|---|
| IEnumerable<ContentAndSettingsReference> |