Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DefaultShippingAddressChooser.php
Go to the documentation of this file.
1 <?php
7 
10 
15 {
19  public function choose(Customer $customer)
20  {
21  $address = $customer->getDefaultShippingAddress();
22  return $address ?: null;
23  }
24 }
$customer
Definition: customers.php:11
$address
Definition: customer.php:38