You are here

public function DateField::getFieldWidgetMap in Drupal 8

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

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',
  ];
}