function FieldPluginBase::getFieldWidgetMap

Same name and namespace in other branches
  1. 10 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::getFieldWidgetMap()
  2. 11.x core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::getFieldWidgetMap()
  3. 8.9.x core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::getFieldWidgetMap()
1 method overrides FieldPluginBase::getFieldWidgetMap()
Email::getFieldWidgetMap in core/modules/field/src/Plugin/migrate/field/Email.php
Get a map between D6 and D8 widgets for this field type.

File

core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php, line 72

Class

FieldPluginBase
The base class for all field plugins.

Namespace

Drupal\migrate_drupal\Plugin\migrate\field

Code

public function getFieldWidgetMap() {
  // By default, use the plugin ID for the widget types.
  return [
    $this->pluginId => $this->pluginId . '_default',
  ];
}

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