Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockEditorDataConverter<TValue, TLayout>

    Converts the block json data into objects

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models.Blocks
    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(IJsonSerializer)

    Declaration
    protected BlockEditorDataConverter(IJsonSerializer jsonSerializer)
    Parameters
    Type Name Description
    IJsonSerializer jsonSerializer

    Methods

    View Source

    Convert(TValue)

    Declaration
    public BlockEditorData<TValue, TLayout> Convert(TValue value)
    Parameters
    Type Name Description
    TValue value
    Returns
    Type Description
    BlockEditorData<TValue, TLayout>
    View Source

    Deserialize(String)

    Declaration
    public BlockEditorData<TValue, TLayout> Deserialize(string json)
    Parameters
    Type Name Description
    System.String json
    Returns
    Type Description
    BlockEditorData<TValue, TLayout>
    View Source

    GetBlockReferences(IEnumerable<TLayout>)

    Return the collection of IBlockReference from the block editor's Layout

    Declaration
    protected abstract IEnumerable<ContentAndSettingsReference> GetBlockReferences(IEnumerable<TLayout> layout)
    Parameters
    Type Name Description
    IEnumerable<TLayout> layout
    Returns
    Type Description
    IEnumerable<ContentAndSettingsReference>
    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
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX