public function FileField::getFieldFormatterMap in Drupal 10
Same name and namespace in other branches
- 8 core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\FileField::getFieldFormatterMap()
- 9 core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\FileField::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/ file/ src/ Plugin/ migrate/ field/ d6/ FileField.php, line 33
Class
- FileField
- Plugin annotation @MigrateField( id = "filefield", core = {6}, source_module = "filefield", destination_module = "file" )
Namespace
Drupal\file\Plugin\migrate\field\d6Code
public function getFieldFormatterMap() {
return [
'default' => 'file_default',
'url_plain' => 'file_url_plain',
'path_plain' => 'file_url_plain',
'image_plain' => 'image',
'image_nodelink' => 'image',
'image_imagelink' => 'image',
];
}