public function ColorField::getFieldWidgetMap in Color Field 8.2
Get a map between D6 and D8 widgets for this field type.
Return value
array The keys are D6 field widget types and the values D8 widgets.
Overrides FieldPluginBase::getFieldWidgetMap
File
- src/
Plugin/ migrate/ field/ ColorField.php, line 41
Class
- ColorField
- Field Plugin for color field migrations.
Namespace
Drupal\color_field\Plugin\migrate\fieldCode
public function getFieldWidgetMap() {
return [
'color_field_default_widget' => 'color_field_widget_box',
'color_field_simple_widget' => 'color_field_widget_grid',
'color_field_spectrum_widget' => 'color_field_widget_html5',
'color_field_plain_text' => 'color_field_widget_default',
];
}