helper = $helper; $this->moduleManager = $moduleManager; } /** * @return bool */ public function isNeedShow() { return $this->moduleManager->isEnabled('Amasty_Customform') && $this->helper->getModuleConfig('information/replace_with') == ReplaceButton::CUSTOM_FORM; } /** * @return string */ public function getLink() { return $this->_urlBuilder->getUrl('amasty_customform/answer/index', [ 'form_id' => $this->helper->getModuleConfig('information/custom_form') ]); } }