function FileField::getFieldFormatterMap

Same name in this branch
  1. 8.9.x core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\FileField::getFieldFormatterMap()
  2. 8.9.x core/modules/file/src/Plugin/migrate/cckfield/d7/FileField.php \Drupal\file\Plugin\migrate\cckfield\d7\FileField::getFieldFormatterMap()
Same name in other branches
  1. 9 core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\FileField::getFieldFormatterMap()
  2. 10 core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\FileField::getFieldFormatterMap()
  3. 11.x core/modules/file/src/Plugin/migrate/field/d6/FileField.php \Drupal\file\Plugin\migrate\field\d6\FileField::getFieldFormatterMap()

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.