_controller = 'adminhtml_dashboard'; $this->_headerText = __('Dashboard'); parent::_construct(); /** * Contact sync. */ $this->buttonList->add( 'contact_sync', [ 'label' => __('Run Contact Sync'), 'class' => 'primary' ] ); /** * Importer sync. */ $this->buttonList->add( 'importer_sync', [ 'label' => __('Run Importer Sync'), 'class' => 'primary' ] ); } /** * @return string */ public function getContactSyncLink() { return $this->getUrl('dotdigitalgroup_email/run/contactsync'); } /** * @return string */ public function getImporterLink() { return $this->getUrl('dotdigitalgroup_email/run/importersync'); } }