/**
* Helper function which gets the formatted order data for the passed order id.
* This function is used if the order status changed and the status mail will be
* send.
*
* @param int $orderId
*/
private function getOrderForStatusMail($orderId) { $order =
$this->
getOrderById($orderId);
$attributes =
$this->attributeLoader->
load('s_order_attributes',
$orderId);
unset($attributes['id'
],
$attributes['orderID'
]);
$order['attributes'
] =
$attributes;
return $order;
} /**
* Helper function which converts all HTML entities, in the passed user data array,
* to their applicable characters.
*
* @return array
*/