Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NewBilling.php
Go to the documentation of this file.
1 <?php
8 
9 class NewBilling extends \Magento\Multishipping\Controller\Checkout\Address
10 {
14  public function execute()
15  {
16  $this->_view->loadLayout();
17  if ($addressForm = $this->_view->getLayout()->getBlock('customer_address_edit')) {
18  $addressForm->setTitle(
19  __('Create Billing Address')
20  )->setSuccessUrl(
21  $this->_url->getUrl('*/*/selectBilling')
22  )->setErrorUrl(
23  $this->_url->getUrl('*/*/*')
24  )->setBackUrl(
25  $this->_url->getUrl('*/*/selectBilling')
26  );
27 
28  $this->_view->getPage()->getConfig()->getTitle()->set(
29  $addressForm->getTitle() . ' - ' . $this->_view->getPage()->getConfig()->getTitle()->getDefault()
30  );
31  }
32  $this->_view->renderLayout();
33  }
34 }
__()
Definition: __.php:13