You are here

public function MediaImage::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/MediaImage.php, line 105

Class

MediaImage
Field Plugin for image field to media image field migrations.

Namespace

Drupal\media_migration\Plugin\migrate\field

Code

public function getFieldFormatterMap() {
  return [
    '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',
    'file_image_picture' => 'entity_reference_entity_view',
    'file_image_image' => 'entity_reference_entity_view',
    'file_rendered' => 'entity_reference_entity_view',
    'image' => 'entity_reference_entity_view',
    'picture' => 'entity_reference_entity_view',
    'picture_sizes_formatter' => 'entity_reference_entity_view',
  ] + parent::getFieldFormatterMap();
}