Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockListEditorDataConverter

    Handles the conversion of data for the block list property editor.

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

    Constructors

    View Source

    BlockListEditorDataConverter()

    Initializes a new instance of the BlockListEditorDataConverter class with a default alias.

    Declaration
    public BlockListEditorDataConverter()
    View Source

    BlockListEditorDataConverter(String)

    Initializes a new instance of the BlockListEditorDataConverter class with a provided alias.

    Declaration
    public BlockListEditorDataConverter(string propertyEditorAlias)
    Parameters
    Type Name Description
    System.String propertyEditorAlias

    The alias of the property editor.

    Methods

    View Source

    GetBlockReferences(JToken)

    Extracts block references from the provided JSON layout.

    Declaration
    protected override IEnumerable<ContentAndSettingsReference>? GetBlockReferences(JToken jsonLayout)
    Parameters
    Type Name Description
    JToken jsonLayout

    The JSON layout containing the block references.

    Returns
    Type Description
    System.Nullable<IEnumerable<ContentAndSettingsReference>>

    A collection of ContentAndSettingsReference objects extracted from the JSON layout.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • BlockListEditorDataConverter()
      • BlockListEditorDataConverter(String)
    • Methods
      • GetBlockReferences(JToken)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX