Orders.php 831 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Reports\Block\Adminhtml\Customer;
  7. /**
  8. * Backend customers by orders report content block
  9. *
  10. * @api
  11. * @author Magento Core Team <core@magentocommerce.com>
  12. * @since 100.0.2
  13. */
  14. class Orders extends \Magento\Backend\Block\Widget\Grid\Container
  15. {
  16. /**
  17. * Define children block group
  18. *
  19. * @var string
  20. */
  21. protected $_blockGroup = 'Magento_Reports';
  22. /**
  23. * @return void
  24. */
  25. protected function _construct()
  26. {
  27. $this->_blockGroup = 'Magento_Reports';
  28. $this->_controller = 'adminhtml_customer_orders';
  29. $this->_headerText = __('Customers by number of orders');
  30. parent::_construct();
  31. $this->buttonList->remove('add');
  32. }
  33. }