Skip to content

Commit

Permalink
Issues 5 - Incomplete namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
srenon authored Jun 25, 2019
1 parent 6b18e1b commit 27d0686
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Plugin/CatalogImportExport/Model/Import/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

namespace MagePal\LinkProduct\Plugin\CatalogImportExport\Model\Import;

use Magento\CatalogImportExport\Model\Import\Produc;
use Magento\CatalogImportExport\Model\Import\Product;
use MagePal\LinkProduct\Model\Product\Link;

/**
* @see \Magento\CatalogImportExport\Model\Import\Product::getLinkNameToId
* @see Product::getLinkNameToId
*/
class Product
{
/**
* REMARK: needs core patch
* https://github.com/magento/magento2/pull/21230/commits/0846e9aed7040659e7ce3e109eb91df3f5fdfb7e.patch
*
* @param \Magento\CatalogImportExport\Model\Import\Product $subject
* @param Product $subject
* @param $result
* @return mixed
*/
public function afterGetLinkNameToId(\Magento\CatalogImportExport\Model\Import\Product $subject, $result)
public function afterGetLinkNameToId(Product $subject, $result)
{
$result['_accessory_'] = Link::LINK_TYPE_ACCESSORY;
return $result;
}

}
}

0 comments on commit 27d0686

Please sign in to comment.