Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-instant-purchase
Model
Ui
CustomerAddressesFormatter.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\InstantPurchase\Model\Ui
;
7
8
use
Magento\Customer\Model\Address
;
9
16
class
CustomerAddressesFormatter
17
{
25
public
function
format
(
Address
$address
): string
26
{
27
return
sprintf(
28
'%s, %s, %s, %s %s, %s'
,
29
$address
->getName(),
30
$address
->getStreetFull(),
31
$address
->getCity(),
32
$address
->getRegion(),
33
$address
->getPostcode(),
34
$address
->getCountryModel()->getName()
35
);
36
}
37
}
Magento\InstantPurchase\Model\Ui
Definition:
CustomerAddressesFormatter.php:6
Magento\Customer\Model\Address
Definition:
AbstractAddress.php:7
Magento\InstantPurchase\Model\Ui\CustomerAddressesFormatter\format
format(Address $address)
Definition:
CustomerAddressesFormatter.php:25
$address
$address
Definition:
customer.php:38
Magento\InstantPurchase\Model\Ui\CustomerAddressesFormatter
Definition:
CustomerAddressesFormatter.php:16
Magento\Customer\Model\Address
Definition:
Address.php:23