public function EntityReference::getFieldFormatterMap in Drupal 10
Same name and namespace in other branches
- 8 core/modules/field/src/Plugin/migrate/field/d7/EntityReference.php \Drupal\field\Plugin\migrate\field\d7\EntityReference::getFieldFormatterMap()
- 9 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 27
Class
- EntityReference
- MigrateField plugin for Drupal 7 entity_reference fields.
Namespace
Drupal\field\Plugin\migrate\field\d7Code
public function getFieldFormatterMap() {
return [
'entityreference_label' => 'entity_reference_label',
'entityreference_entity_id' => 'entity_reference_entity_id',
'entityreference_entity_view' => 'entity_reference_entity_view',
];
}