moduleManager = $moduleManager; } /** * @return array */ public function toOptionArray() { $options = [ [ 'value' => self::REDIRECT_URL, 'label' => __('Link to Custom URL') ], [ 'value' => self::HIDE_PRICE_POPUP, 'label' => __('Amasty Hide Price Popup') ], [ 'value' => self::CUSTOM_FORM, 'label' => __('Popup with Custom Form') ] ]; if ($this->moduleManager->isEnabled('Amasty_Customform') === false) { $options[self::CUSTOM_FORM]['label'] .= ' (' . __('not installed') . ')'; } return $options; } }