17 class Edit extends \Magento\Backend\Block\Widget\Form\Container
46 $this->_integrationHelper = $integrationHelper;
47 parent::__construct($context,
$data);
57 $this->_controller =
'adminhtml_integration';
58 $this->_blockGroup =
'Magento_Integration';
60 $this->buttonList->remove(
'reset');
61 $this->buttonList->remove(
'delete');
63 if ($this->_integrationHelper->isConfigType(
64 $this->_registry->registry(Integration::REGISTRY_KEY_CURRENT_INTEGRATION)
67 $this->buttonList->remove(
'save');
76 'id' =>
'save-split-button',
77 'label' =>
__(
'Save'),
78 'class_name' => \
Magento\Backend\Block\Widget\Button\SplitButton::class,
81 'mage-init' => [
'button' => [
'event' =>
'save',
'target' =>
'#edit_form']],
86 'label' =>
__(
'Save & Activate'),
89 'button' => [
'event' =>
'saveAndActivate',
'target' =>
'#edit_form'],
90 'integration' => [
'gridUrl' => $this->
getUrl(
'*/*/')],
108 return __(
'New Integration');
111 "Edit Integration '%1'",
113 $this->_registry->registry(Integration::REGISTRY_KEY_CURRENT_INTEGRATION)[Info::DATA_NAME]
124 return $this->
getUrl(
'*/*/save');
134 return !isset($this->_registry->registry(Integration::REGISTRY_KEY_CURRENT_INTEGRATION)[Info::DATA_ID]);
escapeHtml($data, $allowedTags=null)
getUrl($route='', $params=[])
__construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Framework\Registry $registry, \Magento\Integration\Helper\Data $integrationHelper, array $data=[])