public function LinkField::getFieldFormatterMap in Drupal 10
Same name in this branch
- 10 core/modules/link/src/Plugin/migrate/field/d6/LinkField.php \Drupal\link\Plugin\migrate\field\d6\LinkField::getFieldFormatterMap()
- 10 core/modules/link/src/Plugin/migrate/field/d7/LinkField.php \Drupal\link\Plugin\migrate\field\d7\LinkField::getFieldFormatterMap()
Same name and namespace in other branches
- 8 core/modules/link/src/Plugin/migrate/field/d7/LinkField.php \Drupal\link\Plugin\migrate\field\d7\LinkField::getFieldFormatterMap()
- 9 core/modules/link/src/Plugin/migrate/field/d7/LinkField.php \Drupal\link\Plugin\migrate\field\d7\LinkField::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 LinkField::getFieldFormatterMap
File
- core/
modules/ link/ src/ Plugin/ migrate/ field/ d7/ LinkField.php, line 28
Class
- LinkField
- @MigrateField( id = "link_field", core = {7}, type_map = { "link_field" = "link" }, source_module = "link", destination_module = "link" )
Namespace
Drupal\link\Plugin\migrate\field\d7Code
public function getFieldFormatterMap() {
return [
'link_default' => 'link',
'link_title_plain' => 'link',
'link_host' => 'link',
'link_url' => 'link',
'link_plain' => 'link',
'link_absolute' => 'link',
'link_domain' => 'link',
'link_no_protocol' => 'link',
'link_short' => 'link',
'link_label' => 'link',
'link_separate' => 'link_separate',
];
}