You are here

public function ImageField::getFieldFormatterMap in Commerce Migrate 3.1.x

Same name and namespace in other branches
  1. 8.2 modules/ubercart/src/Plugin/migrate/field/uc7/ImageField.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\field\uc7\ImageField::getFieldFormatterMap()
  2. 3.0.x modules/ubercart/src/Plugin/migrate/field/uc7/ImageField.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\field\uc7\ImageField::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

modules/ubercart/src/Plugin/migrate/field/uc7/ImageField.php, line 22

Class

ImageField
Adds Ubercart field formatter to field map.

Namespace

Drupal\commerce_migrate_ubercart\Plugin\migrate\field\uc7

Code

public function getFieldFormatterMap() {

  // Ubercart 7 provides a custom field formatter for the image field.
  return [
    'image' => 'image',
    'uc_product_image' => 'image',
  ];
}