Instance.php 748 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Widget Instance grid container
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\Widget\Block\Adminhtml\Widget;
  12. /**
  13. * @api
  14. * @since 100.0.2
  15. */
  16. class Instance extends \Magento\Backend\Block\Widget\Grid\Container
  17. {
  18. /**
  19. * Block constructor
  20. *
  21. * @return void
  22. */
  23. protected function _construct()
  24. {
  25. $this->_blockGroup = 'Magento_Widget';
  26. $this->_controller = 'adminhtml_widget_instance';
  27. $this->_headerText = __('Manage Widget Instances');
  28. parent::_construct();
  29. $this->buttonList->update('add', 'label', __('Add Widget'));
  30. }
  31. }