Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockEditorDataConverter<TValue, TLayout>

    Converts the block json data into objects

    Inheritance
    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
    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
    string json
    BlockEditorData<TValue, TLayout> blockEditorData
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX