getRequest()->getParam('category', false);
$productId = (int)$this->getRequest()->getParam('id');
$params = new \Magento\Framework\DataObject();
$params->setCategoryId($categoryId);
/** @var \Magento\Catalog\Helper\Product $product */
$product = $this->_objectManager->get(\Magento\Catalog\Helper\Product::class);
return $product->initProduct($productId, $this, $params);
}
}