You are here

public function EntityReference::getFieldFormatterMap in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field/src/Plugin/migrate/field/d7/EntityReference.php \Drupal\field\Plugin\migrate\field\d7\EntityReference::getFieldFormatterMap()

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/field/src/Plugin/migrate/field/d7/EntityReference.php, line 25

Class

EntityReference
MigrateField plugin for Drupal 7 entity_reference fields.

Namespace

Drupal\field\Plugin\migrate\field\d7

Code

public function getFieldFormatterMap() {
  return [
    'entityreference_label' => 'entity_reference_label',
    'entityreference_entity_id' => 'entity_reference_entity_id',
    'entityreference_entity_view' => 'entity_reference_entity_view',
  ];
}