$shippingAddress =
$customer->
getDefaultShippingAddress();
} if (!
$shippingAddress instanceof Address
) { return null;
} $shippingAddressArray =
$this->
convertToLegacyAddressArray($shippingAddress);
$shippingAddressArray['attributes'
] =
$this->attributeLoader->
load( 's_user_addresses_attributes',
$shippingAddress->
getid() );
return $shippingAddressArray;
}}