Smalot\Magento\Catalog\Category::assignProduct PHP Method

assignProduct() public method

Assign a product to the required category.
public assignProduct ( integer $categoryId, string $productId, string $position = null, string $identifierType = null ) : Smalot\Magento\ActionInterface
$categoryId integer
$productId string
$position string
$identifierType string
return Smalot\Magento\ActionInterface
    public function assignProduct($categoryId, $productId, $position = null, $identifierType = null)
    {
        return $this->__createAction('catalog_category.assignProduct', func_get_args());
    }