Variable.php 652 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Variable\Block\System;
  7. /**
  8. * Custom Variable Block
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. class Variable extends \Magento\Backend\Block\Widget\Grid\Container
  14. {
  15. /**
  16. * Block constructor
  17. *
  18. * @return void
  19. */
  20. protected function _construct()
  21. {
  22. $this->_blockGroup = 'Magento_Variable';
  23. $this->_controller = 'system_variable';
  24. $this->_headerText = __('Custom Variables');
  25. parent::_construct();
  26. $this->buttonList->update('add', 'label', __('Add New Variable'));
  27. }
  28. }