Invoice.php 827 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Block\Adminhtml;
  7. /**
  8. * Adminhtml sales invoices block
  9. *
  10. * @author Magento Core Team <core@magentocommerce.com>
  11. */
  12. class Invoice extends \Magento\Backend\Block\Widget\Grid\Container
  13. {
  14. /**
  15. * Constructor
  16. *
  17. * @return void
  18. */
  19. protected function _construct()
  20. {
  21. $this->_controller = 'adminhtml_invoice';
  22. $this->_blockGroup = 'Magento_Sales';
  23. $this->_headerText = __('Invoices');
  24. parent::_construct();
  25. $this->buttonList->remove('add');
  26. }
  27. /**
  28. * Get payment info html
  29. *
  30. * @return string
  31. */
  32. public function getPaymentInfoHtml()
  33. {
  34. return $this->getChildHtml('payment_info');
  35. }
  36. }