Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
EditShipping.php
Go to the documentation of this file.
1 <?php
8 
9 class EditShipping extends \Magento\Multishipping\Controller\Checkout\Address
10 {
14  public function execute()
15  {
16  $this->_getState()->setActiveStep(
18  );
19  $this->_view->loadLayout();
20  if ($addressForm = $this->_view->getLayout()->getBlock('customer_address_edit')) {
21  $addressForm->setTitle(
22  __('Edit Shipping Address')
23  )->setSuccessUrl(
24  $this->_url->getUrl('*/*/editShippingPost', ['id' => $this->getRequest()->getParam('id')])
25  )->setErrorUrl(
26  $this->_url->getUrl('*/*/*')
27  );
28 
29  $this->_view->getPage()->getConfig()->getTitle()->set(
30  $addressForm->getTitle() . ' - ' . $this->_view->getPage()->getConfig()->getTitle()->getDefault()
31  );
32 
33  if ($this->_getCheckout()->getCustomerDefaultShippingAddress()) {
34  $addressForm->setBackUrl($this->_url->getUrl('*/checkout/shipping'));
35  }
36  }
37  $this->_view->renderLayout();
38  }
39 }
__()
Definition: __.php:13