C# Class Our.Umbraco.ColorPalettes.Converters.ColorPaletteEditorValueConverter

Inheritance: Umbraco.Core.PropertyEditors.PropertyValueConverterBase
Show file Open project: bjarnef/color-palettes

Public Methods

Method Description
ConvertDataToSource ( Umbraco.Core.Models.PublishedContent.PublishedPropertyType propertyType, object source, bool preview ) : object

Method to convert a property value to an instance of the ColorPalette class.

IsConverter ( Umbraco.Core.Models.PublishedContent.PublishedPropertyType propertyType ) : bool

Method to see if the current property type is of type ColorPalettes editor.

Method Details

ConvertDataToSource() public method

Method to convert a property value to an instance of the ColorPalette class.
public ConvertDataToSource ( Umbraco.Core.Models.PublishedContent.PublishedPropertyType propertyType, object source, bool preview ) : object
propertyType Umbraco.Core.Models.PublishedContent.PublishedPropertyType The current published property /// type to convert.
source object The original property data.
preview bool True if in preview mode.
return object

IsConverter() public method

Method to see if the current property type is of type ColorPalettes editor.
public IsConverter ( Umbraco.Core.Models.PublishedContent.PublishedPropertyType propertyType ) : bool
propertyType Umbraco.Core.Models.PublishedContent.PublishedPropertyType The current property type.
return bool