You are here

public function FieldPluginBase::getFieldWidgetMap in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::getFieldWidgetMap()
  2. 9 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::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 MigrateFieldInterface::getFieldWidgetMap

1 call to FieldPluginBase::getFieldWidgetMap()
FieldPluginBase::alterFieldWidgetMigration in core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php
Apply any custom processing to the field widget migration.
6 methods override FieldPluginBase::getFieldWidgetMap()
DateField::getFieldWidgetMap in core/modules/datetime/src/Plugin/migrate/field/DateField.php
Get a map between D6 and D8 widgets for this field type.
Email::getFieldWidgetMap in core/modules/field/src/Plugin/migrate/field/Email.php
Get a map between D6 and D8 widgets for this field type.
ImageField::getFieldWidgetMap in core/modules/image/src/Plugin/migrate/field/d7/ImageField.php
Get a map between D6 and D8 widgets for this field type.
LinkField::getFieldWidgetMap in core/modules/link/src/Plugin/migrate/field/d7/LinkField.php
Get a map between D6 and D8 widgets for this field type.
ReferenceBase::getFieldWidgetMap in core/modules/migrate_drupal/src/Plugin/migrate/field/ReferenceBase.php
Get a map between D6 and D8 widgets for this field type.

... See full list

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