function DateField::getFieldWidgetMap

Same name in this branch
  1. 8.9.x core/modules/datetime/src/Plugin/migrate/field/d6/DateField.php \Drupal\datetime\Plugin\migrate\field\d6\DateField::getFieldWidgetMap()
Same name in other branches
  1. 9 core/modules/datetime/src/Plugin/migrate/field/DateField.php \Drupal\datetime\Plugin\migrate\field\DateField::getFieldWidgetMap()
  2. 10 core/modules/datetime/src/Plugin/migrate/field/DateField.php \Drupal\datetime\Plugin\migrate\field\DateField::getFieldWidgetMap()
  3. 11.x core/modules/datetime/src/Plugin/migrate/field/DateField.php \Drupal\datetime\Plugin\migrate\field\DateField::getFieldWidgetMap()

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.