You are here

public function NodeReference::getFieldFormatterMap in Drupal 9

Get a map between D6 formatters and D8 formatters for this field type.

This is used by static::alterFieldFormatterMigration() in the base class.

Return value

array The keys are D6 formatters and the values are D8 formatters.

Overrides FieldPluginBase::getFieldFormatterMap

File

core/modules/migrate_drupal/src/Plugin/migrate/field/d7/NodeReference.php, line 46

Class

NodeReference
MigrateField plugin for Drupal 7 node_reference fields.

Namespace

Drupal\migrate_drupal\Plugin\migrate\field\d7

Code

public function getFieldFormatterMap() {
  return [
    'node_reference_default' => 'entity_reference_label',
    'node_reference_plain' => 'entity_reference_label',
    'node_reference_nid' => 'entity_reference_entity_id',
    'node_reference_node' => 'entity_reference_entity_view',
    'node_reference_path' => 'entity_reference_label',
  ];
}