You are here

public function FileField::getFieldFormatterMap in Drupal 8

Same name in this branch
  1. 8 core/modules/file/src/Plugin/migrate/cckfield/d6/FileField.php \Drupal\file\Plugin\migrate\cckfield\d6\FileField::getFieldFormatterMap()
  2. 8 core/modules/file/src/Plugin/migrate/cckfield/d7/FileField.php \Drupal\file\Plugin\migrate\cckfield\d7\FileField::getFieldFormatterMap()
  3. 8 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/cckfield/d6/FileField.php, line 38

Class

FileField
Plugin annotation @MigrateCckField( id = "filefield", core = {6}, source_module = "filefield", destination_module = "file" )

Namespace

Drupal\file\Plugin\migrate\cckfield\d6

Code

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',
  ];
}