_registry = $registry; $this->_helper = $helper; $this->coreHelper = $coreHelper; } /** * Retrieve currently edited product object * * @return \Magento\Catalog\Model\Product|boolean */ protected function getProduct() { $product = $this->_registry->registry('current_product'); if ($product && $product->getId()) { return $product; } return false; } /** * Retrieve post action config * * @return string */ public function getPostAction() { return $this->coreHelper->getPostData($this->getSignupUrl()); } }