Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockEditorPropertyValueEditor<TValue, TLayout>

    Inheritance
    System.Object
    DataValueEditor
    BlockValuePropertyValueEditorBase<TValue, TLayout>
    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public abstract class BlockEditorPropertyValueEditor<TValue, TLayout> : BlockValuePropertyValueEditorBase<TValue, TLayout>, IDataValueEditor, IDataValueReference, IDataValueTags where TValue : BlockValue<TLayout>, new()
        where TLayout : class, IBlockLayoutItem, new()
    Type Parameters
    Name Description
    TValue
    TLayout

    Constructors

    View Source

    BlockEditorPropertyValueEditor(DataEditorAttribute, PropertyEditorCollection, DataValueReferenceFactoryCollection, IDataTypeConfigurationCache, ILocalizedTextService, ILogger<BlockEditorPropertyValueEditor<TValue, TLayout>>, IShortStringHelper, IJsonSerializer, IIOHelper)

    Declaration
    protected BlockEditorPropertyValueEditor(DataEditorAttribute attribute, PropertyEditorCollection propertyEditors, DataValueReferenceFactoryCollection dataValueReferenceFactories, IDataTypeConfigurationCache dataTypeConfigurationCache, ILocalizedTextService textService, ILogger<BlockEditorPropertyValueEditor<TValue, TLayout>> logger, IShortStringHelper shortStringHelper, IJsonSerializer jsonSerializer, IIOHelper ioHelper)
    Parameters
    Type Name Description
    DataEditorAttribute attribute
    PropertyEditorCollection propertyEditors
    DataValueReferenceFactoryCollection dataValueReferenceFactories
    IDataTypeConfigurationCache dataTypeConfigurationCache
    ILocalizedTextService textService
    ILogger<BlockEditorPropertyValueEditor<TValue, TLayout>> logger
    IShortStringHelper shortStringHelper
    IJsonSerializer jsonSerializer
    IIOHelper ioHelper
    View Source

    BlockEditorPropertyValueEditor(PropertyEditorCollection, DataValueReferenceFactoryCollection, IDataTypeConfigurationCache, IShortStringHelper, IJsonSerializer, BlockEditorVarianceHandler, ILanguageService, IIOHelper, DataEditorAttribute)

    Declaration
    protected BlockEditorPropertyValueEditor(PropertyEditorCollection propertyEditors, DataValueReferenceFactoryCollection dataValueReferenceFactories, IDataTypeConfigurationCache dataTypeConfigurationCache, IShortStringHelper shortStringHelper, IJsonSerializer jsonSerializer, BlockEditorVarianceHandler blockEditorVarianceHandler, ILanguageService languageService, IIOHelper ioHelper, DataEditorAttribute attribute)
    Parameters
    Type Name Description
    PropertyEditorCollection propertyEditors
    DataValueReferenceFactoryCollection dataValueReferenceFactories
    IDataTypeConfigurationCache dataTypeConfigurationCache
    IShortStringHelper shortStringHelper
    IJsonSerializer jsonSerializer
    BlockEditorVarianceHandler blockEditorVarianceHandler
    ILanguageService languageService
    IIOHelper ioHelper
    DataEditorAttribute attribute

    Properties

    View Source

    JsonSerializer

    Gets the IJsonSerializer.

    Declaration
    protected IJsonSerializer JsonSerializer { get; }
    Property Value
    Type Description
    IJsonSerializer

    Methods

    View Source

    FromEditor(ContentPropertyData, Object)

    Ensure that sub-editor values are translated through their FromEditor methods

    Declaration
    public override object FromEditor(ContentPropertyData editorValue, object currentValue)
    Parameters
    Type Name Description
    ContentPropertyData editorValue
    System.Object currentValue
    Returns
    Type Description
    System.Object
    View Source

    GetReferences(Object)

    Declaration
    public override IEnumerable<UmbracoEntityReference> GetReferences(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type Description
    IEnumerable<UmbracoEntityReference>
    View Source

    GetTags(Object, Object, Nullable<Int32>)

    Declaration
    public override IEnumerable<ITag> GetTags(object value, object dataTypeConfiguration, int? languageId)
    Parameters
    Type Name Description
    System.Object value
    System.Object dataTypeConfiguration
    System.Nullable<System.Int32> languageId
    Returns
    Type Description
    IEnumerable<ITag>
    View Source

    ToEditor(IProperty, String, String)

    Ensure that sub-editor values are translated through their ToEditor methods

    Declaration
    public override object ToEditor(IProperty property, string culture = null, string segment = null)
    Parameters
    Type Name Description
    IProperty property
    System.String culture
    System.String segment
    Returns
    Type Description
    System.Object
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • BlockEditorPropertyValueEditor(DataEditorAttribute, PropertyEditorCollection, DataValueReferenceFactoryCollection, IDataTypeConfigurationCache, ILocalizedTextService, ILogger<BlockEditorPropertyValueEditor<TValue, TLayout>>, IShortStringHelper, IJsonSerializer, IIOHelper)
      • BlockEditorPropertyValueEditor(PropertyEditorCollection, DataValueReferenceFactoryCollection, IDataTypeConfigurationCache, IShortStringHelper, IJsonSerializer, BlockEditorVarianceHandler, ILanguageService, IIOHelper, DataEditorAttribute)
    • Properties
      • JsonSerializer
    • Methods
      • FromEditor(ContentPropertyData, Object)
      • GetReferences(Object)
      • GetTags(Object, Object, Nullable<Int32>)
      • ToEditor(IProperty, String, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX