public function Product::query in Commerce Migrate 3.1.x
Same name in this branch
- 3.1.x modules/ubercart/src/Plugin/migrate/source/uc7/Product.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc7\Product::query()
- 3.1.x modules/ubercart/src/Plugin/migrate/source/uc6/Product.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc6\Product::query()
Same name and namespace in other branches
- 8.2 modules/ubercart/src/Plugin/migrate/source/uc6/Product.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc6\Product::query()
- 3.0.x modules/ubercart/src/Plugin/migrate/source/uc6/Product.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc6\Product::query()
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides Node::query
File
- modules/
ubercart/ src/ Plugin/ migrate/ source/ uc6/ Product.php, line 21
Class
- Product
- Ubercart 6 product source.
Namespace
Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc6Code
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',
]);
if (isset($this->configuration['node_type'])) {
$query
->condition('n.type', $this->configuration['node_type']);
}
return $query;
}