View Source
Class BlockEditorDataConverter<TValue, TLayout>
Converts the block json data into objects
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public abstract class BlockEditorDataConverter<TValue, TLayout>
where TValue : BlockValue<TLayout>, new()
where TLayout : IBlockLayoutItem
Type Parameters
Name |
Description |
TValue |
|
TLayout |
|
Constructors
View Source
BlockEditorDataConverter(String)
Declaration
protected BlockEditorDataConverter(string propertyEditorAlias)
Parameters
Type |
Name |
Description |
System.String |
propertyEditorAlias |
|
View Source
BlockEditorDataConverter(String, IJsonSerializer)
Declaration
protected BlockEditorDataConverter(string propertyEditorAlias, IJsonSerializer jsonSerializer)
Parameters
Type |
Name |
Description |
System.String |
propertyEditorAlias |
|
IJsonSerializer |
jsonSerializer |
|
View Source
BlockEditorDataConverter(IJsonSerializer)
Declaration
protected BlockEditorDataConverter(IJsonSerializer jsonSerializer)
Parameters
Methods
View Source
Convert(TValue)
Declaration
public BlockEditorData<TValue, TLayout> Convert(TValue value)
Parameters
Type |
Name |
Description |
TValue |
value |
|
Returns
View Source
Deserialize(String)
Declaration
public BlockEditorData<TValue, TLayout> Deserialize(string json)
Parameters
Type |
Name |
Description |
System.String |
json |
|
Returns
View Source
GetBlockReferences(IEnumerable<TLayout>)
Declaration
protected abstract IEnumerable<ContentAndSettingsReference> GetBlockReferences(IEnumerable<TLayout> layout)
Parameters
Type |
Name |
Description |
IEnumerable<TLayout> |
layout |
|
Returns
View Source
TryDeserialize(String, out BlockEditorData<TValue, TLayout>)
Declaration
public bool TryDeserialize(string json, out BlockEditorData<TValue, TLayout> blockEditorData)
Parameters
Type |
Name |
Description |
System.String |
json |
|
BlockEditorData<TValue, TLayout> |
blockEditorData |
|
Returns
Type |
Description |
System.Boolean |
|