You are here

public function FileField::getFieldWidgetMap in Drupal 8

Same name in this branch
  1. 8 core/modules/file/src/Plugin/migrate/cckfield/d6/FileField.php \Drupal\file\Plugin\migrate\cckfield\d6\FileField::getFieldWidgetMap()
  2. 8 core/modules/file/src/Plugin/migrate/cckfield/d7/FileField.php \Drupal\file\Plugin\migrate\cckfield\d7\FileField::getFieldWidgetMap()
  3. 8 core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\FileField::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/file/src/Plugin/migrate/cckfield/d7/FileField.php, line 29

Class

FileField
Plugin annotation @MigrateCckField( id = "file", core = {7}, source_module = "file", destination_module = "file" )

Namespace

Drupal\file\Plugin\migrate\cckfield\d7

Code

public function getFieldWidgetMap() {
  return [
    'filefield_widget' => 'file_generic',
  ];
}