EditAddress.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Multishipping\Controller\Checkout\Address;
  8. class EditAddress extends \Magento\Multishipping\Controller\Checkout\Address
  9. {
  10. /**
  11. * @return void
  12. */
  13. public function execute()
  14. {
  15. $this->_view->loadLayout();
  16. if ($addressForm = $this->_view->getLayout()->getBlock('customer_address_edit')) {
  17. $addressForm->setTitle(
  18. __('Edit Address')
  19. )->setSuccessUrl(
  20. $this->_url->getUrl('*/*/selectBilling')
  21. )->setErrorUrl(
  22. $this->_url->getUrl('*/*/*', ['id' => $this->getRequest()->getParam('id')])
  23. )->setBackUrl(
  24. $this->_url->getUrl('*/*/selectBilling')
  25. );
  26. $this->_view->getPage()->getConfig()->getTitle()->set(
  27. $addressForm->getTitle() . ' - ' . $this->_view->getPage()->getConfig()->getTitle()->getDefault()
  28. );
  29. }
  30. $this->_view->renderLayout();
  31. }
  32. }