public function LinkField::getFieldFormatterMap in Drupal 8
Same name in this branch
- 8 core/modules/link/src/Plugin/migrate/cckfield/LinkField.php \Drupal\link\Plugin\migrate\cckfield\LinkField::getFieldFormatterMap()
- 8 core/modules/link/src/Plugin/migrate/field/d6/LinkField.php \Drupal\link\Plugin\migrate\field\d6\LinkField::getFieldFormatterMap()
- 8 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 FieldPluginBase::getFieldFormatterMap
File
- core/
modules/ link/ src/ Plugin/ migrate/ cckfield/ LinkField.php, line 31
Class
- LinkField
- Plugin annotation @MigrateCckField( id = "link", core = {6}, type_map = { "link_field" = "link" }, source_module = "link", destination_module = "link" )
Namespace
Drupal\link\Plugin\migrate\cckfieldCode
public function getFieldFormatterMap() {
// See d6_field_formatter_settings.yml and FieldPluginBase
// alterFieldFormatterMigration().
return [
'default' => 'link',
'plain' => 'link',
'absolute' => 'link',
'title_plain' => 'link',
'url' => 'link',
'short' => 'link',
'label' => 'link',
'separate' => 'link_separate',
];
}