Files

45 lines
1.4 KiB
PHP

<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Multishipping\Controller\Checkout\Address;
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Multishipping\Controller\Checkout\Address;
/**
* Controller for editing the specified Address.
*/
class EditAddress extends Address implements HttpGetActionInterface
{
/**
* Execute edit Billing Address action.
*
* @return void
*/
public function execute()
{
$this->_view->loadLayout();
if ($addressForm = $this->_view->getLayout()->getBlock('customer_address_edit')) {
$id = $this->getRequest()->getParam('id');
$addressForm->setTitle(
__('Edit Address')
)->setSuccessUrl(
$this->_url->getUrl('*/*/saveBillingFromList', ['id' => $id])
)->setErrorUrl(
$this->_url->getUrl('*/*/*', ['id' => $id])
)->setBackUrl(
$this->_url->getUrl('*/*/selectBilling')
);
$this->_view->getPage()->getConfig()->getTitle()->set(
$addressForm->getTitle() . ' - ' . $this->_view->getPage()->getConfig()->getTitle()->getDefault()
);
}
$this->_view->renderLayout();
}
}