Statistics.php 738 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Reports\Block\Adminhtml\Refresh;
  7. /**
  8. * Report Refresh statistic container
  9. *
  10. * @api
  11. * @author Magento Core Team <core@magentocommerce.com>
  12. * @since 100.0.2
  13. */
  14. class Statistics extends \Magento\Backend\Block\Widget\Grid\Container
  15. {
  16. /**
  17. * Modify Header and remove button "Add"
  18. *
  19. * @return void
  20. */
  21. protected function _construct()
  22. {
  23. $this->_blockGroup = 'Magento_Reports';
  24. $this->_controller = 'adminhtml_refresh_statistics';
  25. $this->_headerText = __('Refresh Statistics');
  26. parent::_construct();
  27. $this->buttonList->remove('add');
  28. }
  29. }