You are here

public function Product::fields in Commerce Migrate 8.2

Same name in this branch
  1. 8.2 modules/ubercart/src/Plugin/migrate/source/uc7/Product.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc7\Product::fields()
  2. 8.2 modules/ubercart/src/Plugin/migrate/source/uc6/Product.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc6\Product::fields()
Same name and namespace in other branches
  1. 3.1.x modules/ubercart/src/Plugin/migrate/source/uc6/Product.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc6\Product::fields()
  2. 3.0.x modules/ubercart/src/Plugin/migrate/source/uc6/Product.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc6\Product::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides Node::fields

File

modules/ubercart/src/Plugin/migrate/source/uc6/Product.php, line 34

Class

Product
Ubercart 6 product source.

Namespace

Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc6

Code

public function fields() {
  $fields = [
    'model' => $this
      ->t('Product model'),
    'sell_price' => $this
      ->t('Sell price of the product'),
    'name' => $this
      ->t('Node type'),
    'stores' => $this
      ->t('Stores'),
  ];
  return parent::fields() + $fields;
}