Change record status: 
Project: 
Introduced in branch: 
8.x-2.x
Introduced in version: 
8.x-2.14
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