You are here

public function FedExPluginBase::splitPackage in Commerce FedEx 8

Function splitPackage.

Parameters

array $shipment_items: An Array of shipment items.

\Drupal\commerce_shipping\Entity\ShipmentInterface $shipment: The Shipment.

Return value

array An array of arrays of shipment items.

Overrides FedExPluginInterface::splitPackage

2 methods override FedExPluginBase::splitPackage()
DangerousGoodsPlugin::splitPackage in modules/dangerous/src/Plugin/Commerce/FedEx/DangerousGoodsPlugin.php
Function splitPackage.
DryIcePlugin::splitPackage in modules/dry_ice/src/Plugin/Commerce/FedEx/DryIcePlugin.php
Function splitPackage.

File

src/Plugin/Commerce/FedEx/FedExPluginBase.php, line 121

Class

FedExPluginBase
Class FedExPluginBase base class for the fedex plugins.

Namespace

Drupal\commerce_fedex\Plugin\Commerce\FedEx

Code

public function splitPackage(array $shipment_items, ShipmentInterface $shipment) {
  return [
    $shipment_items,
  ];
}