NewStatus.php 915 B

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