View Source
Class BlockValuePropertyValueEditorBase<TValue, TLayout>
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public abstract class BlockValuePropertyValueEditorBase<TValue, TLayout> : DataValueEditor, IDataValueEditor, IDataValueReference, IDataValueTags where TValue : BlockValue<TLayout>, new()
where TLayout : class, IBlockLayoutItem, new()
Type Parameters
Name |
Description |
TValue |
|
TLayout |
|
Constructors
View Source
BlockValuePropertyValueEditorBase(DataEditorAttribute, PropertyEditorCollection, IDataTypeConfigurationCache, ILocalizedTextService, ILogger, IShortStringHelper, IJsonSerializer, IIOHelper, DataValueReferenceFactoryCollection)
Declaration
protected BlockValuePropertyValueEditorBase(DataEditorAttribute attribute, PropertyEditorCollection propertyEditors, IDataTypeConfigurationCache dataTypeConfigurationCache, ILocalizedTextService textService, ILogger logger, IShortStringHelper shortStringHelper, IJsonSerializer jsonSerializer, IIOHelper ioHelper, DataValueReferenceFactoryCollection dataValueReferenceFactoryCollection)
Parameters
View Source
BlockValuePropertyValueEditorBase(PropertyEditorCollection, IDataTypeConfigurationCache, IShortStringHelper, IJsonSerializer, DataValueReferenceFactoryCollection, BlockEditorVarianceHandler, ILanguageService, IIOHelper, DataEditorAttribute)
Declaration
protected BlockValuePropertyValueEditorBase(PropertyEditorCollection propertyEditors, IDataTypeConfigurationCache dataTypeConfigurationCache, IShortStringHelper shortStringHelper, IJsonSerializer jsonSerializer, DataValueReferenceFactoryCollection dataValueReferenceFactoryCollection, BlockEditorVarianceHandler blockEditorVarianceHandler, ILanguageService languageService, IIOHelper ioHelper, DataEditorAttribute attribute)
Parameters
Properties
View Source
BlockEditorValues
Declaration
protected BlockEditorValues<TValue, TLayout> BlockEditorValues { get; set; }
Property Value
Methods
View Source
Declaration
protected IEnumerable<Guid> ConfiguredElementTypeKeys(IBlockConfiguration configuration)
Parameters
Returns
Type |
Description |
IEnumerable<Guid> |
|
View Source
CreateWithLayout(IEnumerable<TLayout>)
Declaration
protected abstract TValue CreateWithLayout(IEnumerable<TLayout> layout)
Parameters
Type |
Name |
Description |
IEnumerable<TLayout> |
layout |
|
Returns
View Source
GetBlockValueReferences(TValue)
Declaration
protected IEnumerable<UmbracoEntityReference> GetBlockValueReferences(TValue blockValue)
Parameters
Type |
Name |
Description |
TValue |
blockValue |
|
Returns
View Source
Declaration
protected IEnumerable<ITag> GetBlockValueTags(TValue blockValue, int? languageId)
Parameters
Type |
Name |
Description |
TValue |
blockValue |
|
System.Nullable<System.Int32> |
languageId |
|
Returns
Type |
Description |
IEnumerable<ITag> |
|
View Source
GetReferences(Object)
Declaration
public abstract IEnumerable<UmbracoEntityReference> GetReferences(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
View Source
Declaration
public abstract 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
MapBlockValueFromEditor(TValue)
Declaration
protected void MapBlockValueFromEditor(TValue blockValue)
Parameters
Type |
Name |
Description |
TValue |
blockValue |
|
View Source
MapBlockValueToEditor(IProperty, TValue, String, String)
Declaration
protected void MapBlockValueToEditor(IProperty property, TValue blockValue, string culture, string segment)
Parameters
Type |
Name |
Description |
IProperty |
property |
|
TValue |
blockValue |
|
System.String |
culture |
|
System.String |
segment |
|
View Source
MergeBlockEditorDataForCulture(TValue, TValue, String)
Declaration
protected TValue MergeBlockEditorDataForCulture(TValue sourceBlockValue, TValue targetBlockValue, string culture)
Parameters
Type |
Name |
Description |
TValue |
sourceBlockValue |
|
TValue |
targetBlockValue |
|
System.String |
culture |
|
Returns