Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Edit.php
Go to the documentation of this file.
1 <?php
11 
16 class Edit extends \Magento\Backend\Block\Widget\Form\Container
17 {
23  protected $_coreRegistry = null;
24 
30  public function __construct(
31  \Magento\Backend\Block\Widget\Context $context,
32  \Magento\Framework\Registry $registry,
33  array $data = []
34  ) {
35  $this->_coreRegistry = $registry;
36  parent::__construct($context, $data);
37  }
38 
44  protected function _construct()
45  {
46  $this->_objectId = 'rule';
47  $this->_controller = 'adminhtml_rule';
48  $this->_blockGroup = 'Magento_Tax';
49 
50  parent::_construct();
51 
52  $this->buttonList->update('save', 'label', __('Save Rule'));
53  $this->buttonList->update('delete', 'label', __('Delete Rule'));
54 
55  $this->buttonList->add(
56  'save_and_continue',
57  [
58  'label' => __('Save and Continue Edit'),
59  'class' => 'save',
60  'data_attribute' => [
61  'mage-init' => ['button' => ['event' => 'saveAndContinueEdit', 'target' => '#edit_form']],
62  ]
63  ],
64  10
65  );
66  }
67 }
__()
Definition: __.php:13
__construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Framework\Registry $registry, array $data=[])
Definition: Edit.php:30