|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (ProductRepositoryInterface $productRepository, \Magento\Bundle\Api\Data\LinkInterfaceFactory $linkFactory, \Magento\Bundle\Model\SelectionFactory $bundleSelection, \Magento\Bundle\Model\ResourceModel\BundleFactory $bundleFactory, \Magento\Bundle\Model\ResourceModel\Option\CollectionFactory $optionCollection, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Api\DataObjectHelper $dataObjectHelper) | |
Public Member Functions inherited from ProductLinkManagementInterface | |
| getChildren ($productSku, $optionId=null) | |
| addChildByProductSku ($sku, $optionId, \Magento\Bundle\Api\Data\LinkInterface $linkedProduct) | |
| saveChild ( $sku, \Magento\Bundle\Api\Data\LinkInterface $linkedProduct) | |
| addChild (\Magento\Catalog\Api\Data\ProductInterface $product, $optionId, \Magento\Bundle\Api\Data\LinkInterface $linkedProduct) | |
| removeChild ($sku, $optionId, $childSku) | |
Protected Member Functions | |
| mapProductLinkToSelectionModel (\Magento\Bundle\Model\Selection $selectionModel, \Magento\Bundle\Api\Data\LinkInterface $productLink, $linkedProductId, $parentProductId) | |
Protected Attributes | |
| $productRepository | |
| $linkFactory | |
| $bundleFactory | |
| $bundleSelection | |
| $optionCollection | |
| $dataObjectHelper | |
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 20 of file LinkManagement.php.
| __construct | ( | ProductRepositoryInterface | $productRepository, |
| \Magento\Bundle\Api\Data\LinkInterfaceFactory | $linkFactory, | ||
| \Magento\Bundle\Model\SelectionFactory | $bundleSelection, | ||
| \Magento\Bundle\Model\ResourceModel\BundleFactory | $bundleFactory, | ||
| \Magento\Bundle\Model\ResourceModel\Option\CollectionFactory | $optionCollection, | ||
| \Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
| \Magento\Framework\Api\DataObjectHelper | $dataObjectHelper | ||
| ) |
| ProductRepositoryInterface | $productRepository | |
| \Magento\Bundle\Api\Data\LinkInterfaceFactory | $linkFactory | |
| \Magento\Bundle\Model\SelectionFactory | $bundleSelection | |
| \Magento\Bundle\Model\ResourceModel\BundleFactory | $bundleFactory | |
| \Magento\Bundle\Model\ResourceModel\Option\CollectionFactory | $optionCollection | |
| \Magento\Store\Model\StoreManagerInterface | $storeManager | |
| \Magento\Framework\Api\DataObjectHelper | $dataObjectHelper |
Definition at line 66 of file LinkManagement.php.
|
protected |
| \Magento\Bundle\Model\Selection | $selectionModel | |
| \Magento\Bundle\Api\Data\LinkInterface | $productLink | |
| string | $linkedProductId | |
| string | $parentProductId |
Definition at line 180 of file LinkManagement.php.
|
protected |
Definition at line 35 of file LinkManagement.php.
|
protected |
Definition at line 40 of file LinkManagement.php.
|
protected |
Definition at line 50 of file LinkManagement.php.
|
protected |
Definition at line 30 of file LinkManagement.php.
|
protected |
Definition at line 45 of file LinkManagement.php.
|
protected |
Definition at line 25 of file LinkManagement.php.