You are here

public function UserReference::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/UserReference.php, line 47

Class

UserReference
MigrateField plugin for Drupal 7 user_reference fields.

Namespace

Drupal\migrate_drupal\Plugin\migrate\field\d7

Code

public function getFieldFormatterMap() {
  return [
    'user_reference_default' => 'entity_reference_label',
    'user_reference_plain' => 'entity_reference_label',
    'user_reference_uid' => 'entity_reference_entity_id',
    'user_reference_user' => 'entity_reference_entity_view',
    'user_reference_path' => 'entity_reference_label',
  ];
}