You are here

public function LinkField::getFieldWidgetMap in Drupal 8

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

Class

LinkField
@MigrateCckField( id = "link_field", core = {7}, type_map = { "link_field" = "link" }, source_module = "link", destination_module = "link" )

Namespace

Drupal\link\Plugin\migrate\cckfield\d7

Code

public function getFieldWidgetMap() {

  // By default, use the plugin ID for the widget types.
  return [
    'link_field' => 'link_default',
  ];
}