View Source
Class BlockEditorPropertyValueEditor<TValue, TLayout>
Inheritance
System.Object
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
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
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
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
View Source
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 |
|