Maybe just change this to:
$shipments = [ [ 'title' => $this->t('Shipment #1'), 'items' => [], ], ];
The module overwrites the title generated by commerce_shipping for the first shipment of every order, regardless of shipment method.
Place an order and edit the shipment. The Title will be Primary Shipment.
Only apply this to fedex shipments if that was the intention.
/**
* {@inheritdoc}
*/
public function pack(OrderInterface $order, ProfileInterface $shipping_profile) {
$shipments = [
[
'title' => $this->t('Primary Shipment'),
'items' => [],
],
];
Active
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Maybe just change this to:
$shipments = [
[
'title' => $this->t('Shipment #1'),
'items' => [],
],
];