Class BlockListEditorDataConverter
Handles the conversion of data for the block list property editor.
Namespace: Umbraco.Cms.Core.Models.Blocks
Assembly: Umbraco.Infrastructure.dll
Syntax
public class BlockListEditorDataConverter : BlockEditorDataConverter
Constructors
View SourceBlockListEditorDataConverter()
Initializes a new instance of the Block
Declaration
public BlockListEditorDataConverter()
BlockListEditorDataConverter(String)
Initializes a new instance of the Block
Declaration
public BlockListEditorDataConverter(string propertyEditorAlias)
Parameters
Type | Name | Description |
---|---|---|
System. |
propertyEditorAlias | The alias of the property editor. |
Methods
View SourceGetBlockReferences(JToken)
Extracts block references from the provided JSON layout.
Declaration
protected override IEnumerable<ContentAndSettingsReference>? GetBlockReferences(JToken jsonLayout)
Parameters
Type | Name | Description |
---|---|---|
JToken | jsonLayout | The JSON layout containing the block references. |
Returns
Type | Description |
---|---|
System. |
A collection of Content |