Assign.php 894 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\Order\Status;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. class Assign extends \Magento\Backend\Block\Widget\Form\Container
  12. {
  13. /**
  14. * Constructor
  15. *
  16. * @return void
  17. */
  18. protected function _construct()
  19. {
  20. $this->_controller = 'adminhtml_order_status';
  21. $this->_mode = 'assign';
  22. $this->_blockGroup = 'Magento_Sales';
  23. parent::_construct();
  24. $this->buttonList->update('save', 'label', __('Save Status Assignment'));
  25. $this->buttonList->remove('delete');
  26. }
  27. /**
  28. * Retrieve text for header element depending on loaded page
  29. *
  30. * @return \Magento\Framework\Phrase
  31. */
  32. public function getHeaderText()
  33. {
  34. return __('Assign Order Status to State');
  35. }
  36. }