View Source
Class BlockValuePropertyValueEditorBase<TValue, TLayout>
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(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
CacheReferencedEntities(BlockEditorData<TValue, TLayout>?)
Caches referenced entities for all property values with supporting property editors within the specified block editor data
optimising subsequent retrieval of entities when parsing and converting property values.
Declaration
[Obsolete("This method is available for support of request caching retrieved entities in derived property value editors. The intention is to supersede this with lazy loaded read locks, which will make this unnecessary. Scheduled for removal in Umbraco 19.")]
protected void CacheReferencedEntities(BlockEditorData<TValue, TLayout>? blockEditorData)
Parameters
| Type |
Name |
Description |
| BlockEditorData<TValue, TLayout> |
blockEditorData |
The block editor data containing content and settings property values to analyze for referenced entities.
|
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 |
|
| int? |
languageId |
|
Returns
| Type |
Description |
| IEnumerable<ITag> |
|
View Source
GetReferences(object?)
Returns any references contained in the value
Declaration
public abstract IEnumerable<UmbracoEntityReference> GetReferences(object? value)
Parameters
| Type |
Name |
Description |
| object |
value |
|
Returns
View Source
Returns any tags contained in the value
Declaration
public abstract IEnumerable<ITag> GetTags(object? value, object? dataTypeConfiguration, int? languageId)
Parameters
| Type |
Name |
Description |
| object |
value |
|
| object |
dataTypeConfiguration |
|
| int? |
languageId |
|
Returns
| Type |
Description |
| IEnumerable<ITag> |
|
View Source
MapBlockValueFromEditor(TValue?, TValue?, Guid)
Declaration
protected void MapBlockValueFromEditor(TValue? editedBlockValue, TValue? currentBlockValue, Guid contentKey)
Parameters
| Type |
Name |
Description |
| TValue |
editedBlockValue |
|
| TValue |
currentBlockValue |
|
| Guid |
contentKey |
|
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 |
|
| string |
culture |
|
| 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 |
|
| string |
culture |
|
Returns