public function DateField::getFieldWidgetMap in Drupal 8
Same name in this branch
- 8 core/modules/datetime/src/Plugin/migrate/field/DateField.php \Drupal\datetime\Plugin\migrate\field\DateField::getFieldWidgetMap()
- 8 core/modules/datetime/src/Plugin/migrate/field/d6/DateField.php \Drupal\datetime\Plugin\migrate\field\d6\DateField::getFieldWidgetMap()
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
- core/
modules/ datetime/ src/ Plugin/ migrate/ field/ d6/ DateField.php, line 39
Class
- DateField
- Plugin annotation @MigrateField( id = "date", type_map = { "date" = "datetime", "datestamp" = "timestamp", "datetime" = "datetime", }, core = {6}, source_module = "date", destination_module = "datetime", weight = 9999999, )
Namespace
Drupal\datetime\Plugin\migrate\field\d6Code
public function getFieldWidgetMap() {
return [
'date' => 'datetime_default',
'datetime' => 'datetime_default',
'datestamp' => 'datetime_timestamp',
];
}