unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue(); return parent::render($element); } /** * Return element html * * @param \Magento\Framework\Data\Form\Element\AbstractElement $element * @return string * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element) { return $this->_toHtml(); } /** * Return ajax url for synchronize button * * @return string */ public function getAjaxSyncUrl() { return $this->getUrl('retailcrm_retailcrm/system_config/button'); } /** * Generate synchronize button html * * @return string */ public function getButtonHtml() { $button = $this->getLayout()->createBlock( 'Magento\Backend\Block\Widget\Button' )->setData( [ 'id' => 'order_button', 'label' => __('Run'), ] ); return $button->toHtml(); } }