You are here

public function ReferenceBase::getFieldWidgetMap in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal/src/Plugin/migrate/field/ReferenceBase.php \Drupal\migrate_drupal\Plugin\migrate\field\ReferenceBase::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/migrate_drupal/src/Plugin/migrate/field/ReferenceBase.php, line 58

Class

ReferenceBase
Base class for Drupal reference fields.

Namespace

Drupal\migrate_drupal\Plugin\migrate\field

Code

public function getFieldWidgetMap() {
  return [
    $this->pluginId . '_select' => 'options_select',
    $this->pluginId . '_buttons' => 'options_buttons',
    $this->pluginId . '_autocomplete' => 'entity_reference_autocomplete_tags',
  ];
}