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 BlockListEditorDataConverter class with a default alias.
Declaration
public BlockListEditorDataConverter()
BlockListEditorDataConverter(String)
Initializes a new instance of the BlockListEditorDataConverter class with a provided alias.
Declaration
public BlockListEditorDataConverter(string propertyEditorAlias)
Parameters
Type | Name | Description |
---|---|---|
System.String | 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.Nullable<IEnumerable<ContentAndSettingsReference>> | A collection of ContentAndSettingsReference objects extracted from the JSON layout. |