public function FileEntity::getFieldFormatterMap in Media Migration 8
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 EntityReference::getFieldFormatterMap
File
- src/
Plugin/ migrate/ field/ FileEntity.php, line 118
Class
- FileEntity
- Field Plugin for file_entity to media migrations.
Namespace
Drupal\media_migration\Plugin\migrate\fieldCode
public function getFieldFormatterMap() {
return [
'file_image_picture' => 'media_responsive_thumbnail',
'file_image_image' => 'media_thumbnail',
'file_rendered' => 'entity_reference_entity_view',
'file_download_link' => 'entity_reference_label',
'file_audio' => 'entity_reference_entity_view',
'file_video' => 'entity_reference_entity_view',
'file_default' => 'entity_reference_entity_view',
'file_table' => 'entity_reference_entity_view',
'file_url_plain' => 'entity_reference_label',
] + parent::getFieldFormatterMap();
}