public function Product::initializeIterator in Commerce Migrate 3.0.x
Same name in this branch
- 3.0.x modules/csv_example/src/Plugin/migrate/source/Product.php \Drupal\commerce_migrate_csv_example\Plugin\migrate\source\Product::initializeIterator()
- 3.0.x modules/magento/src/Plugin/migrate/source/m2/Product.php \Drupal\commerce_migrate_magento\Plugin\migrate\source\m2\Product::initializeIterator()
Same name and namespace in other branches
- 8.2 modules/magento/src/Plugin/migrate/source/m2/Product.php \Drupal\commerce_migrate_magento\Plugin\migrate\source\m2\Product::initializeIterator()
- 3.1.x modules/magento/src/Plugin/migrate/source/m2/Product.php \Drupal\commerce_migrate_magento\Plugin\migrate\source\m2\Product::initializeIterator()
File
- modules/
magento/ src/ Plugin/ migrate/ source/ m2/ Product.php, line 47
Class
- Product
- Gets the product rows.
Namespace
Drupal\commerce_migrate_magento\Plugin\migrate\source\m2Code
public function initializeIterator() {
$file = parent::initializeIterator();
if (empty($this->productData)) {
$this->fileData = $this
->getFileData($file);
$file = parent::initializeIterator();
}
return $this
->getYield($file);
}