8 class Edit extends \Magento\Backend\Block\Widget\Form\Container
29 parent::__construct($context,
$data);
39 $this->_objectId =
'id';
40 $this->_controller =
'adminhtml_agreement';
41 $this->_blockGroup =
'Magento_CheckoutAgreements';
45 $this->buttonList->update(
'save',
'label',
__(
'Save Condition'));
46 $this->buttonList->update(
'delete',
'label',
__(
'Delete Condition'));
56 if ($this->_coreRegistry->registry(
'checkout_agreement')->getId()) {
57 return __(
'Edit Terms and Conditions');
59 return __(
'New Terms and Conditions');
__construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Framework\Registry $registry, array $data=[])