Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
EditBilling.php
Go to the documentation of this file.
1 <?php
8 
9 class EditBilling 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  $id = $this->getRequest()->getParam('id');
22  $addressForm->setTitle(
23  __('Edit Billing Address')
24  )->setSuccessUrl(
25  $this->_url->getUrl('*/*/saveBilling', ['id' => $id])
26  )->setErrorUrl(
27  $this->_url->getUrl('*/*/*', ['id' => $id])
28  )->setBackUrl(
29  $this->_url->getUrl('*/checkout/overview')
30  );
31  $this->_view->getPage()->getConfig()->getTitle()->set(
32  $addressForm->getTitle() . ' - ' . $this->_view->getPage()->getConfig()->getTitle()->getDefault()
33  );
34  }
35  $this->_view->renderLayout();
36  }
37 }
$id
Definition: fieldset.phtml:14
__()
Definition: __.php:13