Class BlockListPropertyEditor
Represents a block list property editor.
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Infrastructure.dll
Syntax
public class BlockListPropertyEditor : BlockListPropertyEditorBase, IDataEditor, IDiscoverable
Constructors
View SourceBlockListPropertyEditor(IDataValueEditorFactory, IIOHelper, IBlockValuePropertyIndexValueFactory, IJsonSerializer)
Initializes a new instance of the Block
Declaration
public BlockListPropertyEditor(IDataValueEditorFactory dataValueEditorFactory, IIOHelper ioHelper, IBlockValuePropertyIndexValueFactory blockValuePropertyIndexValueFactory, IJsonSerializer jsonSerializer)
Parameters
Type | Name | Description |
---|---|---|
IData |
dataValueEditorFactory | |
IIOHelper | ioHelper | |
IBlock |
blockValuePropertyIndexValueFactory | |
IJson |
jsonSerializer |
BlockListPropertyEditor(IDataValueEditorFactory, PropertyEditorCollection, IIOHelper, IBlockValuePropertyIndexValueFactory, IJsonSerializer)
Initializes a new instance of the Block
Declaration
public BlockListPropertyEditor(IDataValueEditorFactory dataValueEditorFactory, PropertyEditorCollection propertyEditors, IIOHelper ioHelper, IBlockValuePropertyIndexValueFactory blockValuePropertyIndexValueFactory, IJsonSerializer jsonSerializer)
Parameters
Type | Name | Description |
---|---|---|
IData |
dataValueEditorFactory | |
Property |
propertyEditors | |
IIOHelper | ioHelper | |
IBlock |
blockValuePropertyIndexValueFactory | |
IJson |
jsonSerializer |
Properties
View SourceSupportsConfigurableElements
Declaration
public override bool SupportsConfigurableElements { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
View SourceCanMergePartialPropertyValues(IPropertyType)
Determines if the value editor needs to perform Merge
Declaration
public override bool CanMergePartialPropertyValues(IPropertyType propertyType)
Parameters
Type | Name | Description |
---|---|---|
IProperty |
propertyType |
Returns
Type | Description |
---|---|
System. |
CreateConfigurationEditor()
Creates a configuration editor instance.
Declaration
protected override IConfigurationEditor CreateConfigurationEditor()
Returns
Type | Description |
---|---|
IConfiguration |
MergePartialPropertyValueForCulture(Object, Object, String)
Partially merges a source property value into a target property value for a given culture.
Declaration
public override object MergePartialPropertyValueForCulture(object sourceValue, object targetValue, string culture)
Parameters
Type | Name | Description |
---|---|---|
System. |
sourceValue | The source property value. |
System. |
targetValue | The target property value. |
System. |
culture | The culture (or null for invariant). |
Returns
Type | Description |
---|---|
System. |
The result of the merge operation. |
MergeVariantInvariantPropertyValue(Object, Object, Boolean, HashSet<String>)
Declaration
public override object MergeVariantInvariantPropertyValue(object sourceValue, object targetValue, bool canUpdateInvariantData, HashSet<string> allowedCultures)
Parameters
Type | Name | Description |
---|---|---|
System. |
sourceValue | |
System. |
targetValue | |
System. |
canUpdateInvariantData | |
Hash |
allowedCultures |
Returns
Type | Description |
---|---|
System. |