public function TaxonomyTermReference::getFieldFormatterMap in Drupal 9
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/Plugin/migrate/field/TaxonomyTermReference.php \Drupal\taxonomy\Plugin\migrate\field\TaxonomyTermReference::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/ taxonomy/ src/ Plugin/ migrate/ field/ TaxonomyTermReference.php, line 24
Class
- TaxonomyTermReference
- Plugin annotation @MigrateField( id = "taxonomy_term_reference", type_map = { "taxonomy_term_reference" = "entity_reference" }, core = {6,7}, source_module = "taxonomy", destination_module = "core", )
Namespace
Drupal\taxonomy\Plugin\migrate\fieldCode
public function getFieldFormatterMap() {
return [
'taxonomy_term_reference_link' => 'entity_reference_label',
'taxonomy_term_reference_plain' => 'entity_reference_label',
'taxonomy_term_reference_rss_category' => 'entity_reference_label',
'i18n_taxonomy_term_reference_link' => 'entity_reference_label',
'entityreference_entity_view' => 'entity_reference_entity_view',
];
}