Smalot\Magento\Catalog\ProductLink::assign PHP Method

assign() public method

Allows you to assign a product link (related, cross-sell, up-sell, or grouped) to another product.
public assign ( string $type, string $productId, string $linkedProductId, array $data, string $identifierType = null ) : Smalot\Magento\ActionInterface
$type string
$productId string
$linkedProductId string
$data array
$identifierType string
return Smalot\Magento\ActionInterface
    public function assign($type, $productId, $linkedProductId, $data, $identifierType = null)
    {
        return $this->__createAction('catalog_product_link.assign', func_get_args());
    }