Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockEditorDataConverter

    Converts the block json data into objects

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models.Blocks
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public abstract class BlockEditorDataConverter

    Constructors

    View Source

    BlockEditorDataConverter(String)

    Declaration
    protected BlockEditorDataConverter(string propertyEditorAlias)
    Parameters
    Type Name Description
    System.String propertyEditorAlias

    Methods

    View Source

    ConvertFrom(JToken)

    Declaration
    public BlockEditorData ConvertFrom(JToken json)
    Parameters
    Type Name Description
    JToken json
    Returns
    Type Description
    BlockEditorData
    View Source

    Deserialize(String)

    Declaration
    public BlockEditorData Deserialize(string json)
    Parameters
    Type Name Description
    System.String json
    Returns
    Type Description
    BlockEditorData
    View Source

    GetBlockReferences(JToken)

    Return the collection of IBlockReference from the block editor's Layout (which could be an array or an object depending on the editor)

    Declaration
    protected abstract IEnumerable<ContentAndSettingsReference>? GetBlockReferences(JToken jsonLayout)
    Parameters
    Type Name Description
    JToken jsonLayout
    Returns
    Type Description
    System.Nullable<IEnumerable<ContentAndSettingsReference>>
    View Source

    TryDeserialize(String, out BlockEditorData)

    Declaration
    public bool TryDeserialize(string json, out BlockEditorData blockEditorData)
    Parameters
    Type Name Description
    System.String json
    BlockEditorData blockEditorData
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • BlockEditorDataConverter(String)
    • Methods
      • ConvertFrom(JToken)
      • Deserialize(String)
      • GetBlockReferences(JToken)
      • TryDeserialize(String, out BlockEditorData)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX