You are here

public function DateField::getFieldWidgetMap in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/datetime/src/Plugin/migrate/field/DateField.php \Drupal\datetime\Plugin\migrate\field\DateField::getFieldWidgetMap()
  2. 9 core/modules/datetime/src/Plugin/migrate/field/DateField.php \Drupal\datetime\Plugin\migrate\field\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/DateField.php, line 46

Class

DateField
Provides a field plugin for date and time fields.

Namespace

Drupal\datetime\Plugin\migrate\field

Code

public function getFieldWidgetMap() {
  return [
    'date' => 'datetime_default',
    'datetime' => 'datetime_default',
    'datestamp' => 'datetime_timestamp',
  ];
}