Grid.php 654 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Block\Dashboard;
  7. /**
  8. * Adminhtml dashboard grid
  9. *
  10. * @author Magento Core Team <core@magentocommerce.com>
  11. * @api
  12. * @since 100.0.2
  13. */
  14. class Grid extends \Magento\Backend\Block\Widget\Grid\Extended
  15. {
  16. /**
  17. * @var string
  18. */
  19. protected $_template = 'Magento_Backend::dashboard/grid.phtml';
  20. /**
  21. * Setting default for every grid on dashboard
  22. *
  23. * @return void
  24. */
  25. protected function _construct()
  26. {
  27. parent::_construct();
  28. $this->setDefaultLimit(5);
  29. }
  30. }