By bojanz on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x-2.x
Introduced in version:
8.x-2.14
Issue links:
Description:
Orders now have a collectProfiles() method which allows the caller to get all related profiles (billing, shipping).
$profiles = $order->collectProfiles();
if (isset($profiles['billing'])) {
// Do something with the billing profile.
}
if (isset($profiles['shipping'])) {
// Do something with the shipping profile.
}
Impacts:
Module developers