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