You are here

public function ColorField::getFieldFormatterMap in Color Field 8.2

Get a map between D6 formatters and D8 formatters for this field type.

This is used by static::alterFieldFormatterMigration() in the base class.

Return value

array The keys are D6 formatters and the values are D8 formatters.

Overrides FieldPluginBase::getFieldFormatterMap

File

src/Plugin/migrate/field/ColorField.php, line 53

Class

ColorField
Field Plugin for color field migrations.

Namespace

Drupal\color_field\Plugin\migrate\field

Code

public function getFieldFormatterMap() {
  return [
    'color_field_default_formatter' => 'color_field_formatter_text',
    'color_field_css_declaration' => 'color_field_formatter_css',
    'color_field_swatch' => 'color_field_formatter_swatch',
  ];
}