You are here

public function ProductVariationTrait::fields in Commerce Migrate 3.1.x

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

File

modules/ubercart/src/Plugin/migrate/source/ProductVariationTrait.php, line 25

Class

ProductVariationTrait
Ubercart product variation source.

Namespace

Drupal\commerce_migrate_ubercart\Plugin\migrate\source

Code

public function fields() {
  $fields = [
    'vid' => t('The primary identifier for this version.'),
    'log' => $this
      ->t('Revision Log message'),
    'uid' => $this
      ->t('Node UID.'),
    'model' => $this
      ->t('SKU code'),
    'sell_price' => $this
      ->t('Product price'),
  ];
  return parent::fields() + $fields;
}