Start.php 854 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Controller\Adminhtml\Order\Create;
  7. use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
  8. use Magento\Backend\App\Action;
  9. class Start extends \Magento\Sales\Controller\Adminhtml\Order\Create implements HttpGetActionInterface
  10. {
  11. /**
  12. * Start order create action
  13. *
  14. * @return \Magento\Backend\Model\View\Result\Redirect
  15. */
  16. public function execute()
  17. {
  18. $this->_getSession()->clearStorage();
  19. /** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
  20. $resultRedirect = $this->resultRedirectFactory->create();
  21. return $resultRedirect->setPath('sales/*', ['customer_id' => $this->getRequest()->getParam('customer_id')]);
  22. }
  23. }