/** * Add product to import * * @param \Magento\CatalogImportExport\Model\Import\Product $product * @param string $storeId * @return $this */ protected function addProductToImport($product, $storeId) { if (!isset($this->products[$product->getId()])) { $this->products[$product->getId()] = []; $this->products[$product->getId()][$storeId] = $product; } return $this; }