moduleManager = $moduleManager; $this->moduleHelper = $moduleHelper; parent::__construct($context, $data); } /** * @return string */ public function toHtml() { if ($this->moduleManager->isEnabled('Amasty_CronScheduler') || $this->moduleHelper->isOriginMarketplace()) { return ''; } return parent::toHtml(); } public function getLink() { return 'https://amasty.com/cron-scheduler-for-magento-2.html' . '?utm_source=extension&utm_medium=backend&utm_campaign=from_cron_schedule_list_to_cron_schedule_m2'; } }