You are here

public function ProductVariationTrait::query in Commerce Migrate 8.2

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

File

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

Class

ProductVariationTrait
Ubercart product variation source.

Namespace

Drupal\commerce_migrate_ubercart\Plugin\migrate\source

Code

public function query() {
  $query = parent::query();
  $query
    ->innerJoin('uc_products', 'ucp', 'n.nid = ucp.nid AND n.vid = ucp.vid');
  $query
    ->fields('ucp', [
    'model',
    'sell_price',
  ]);
  return $query;
}