You are here

public function FedExPluginBase::adjustPackage in Commerce FedEx 8

Adjust a package based on the items, shipment and profile.

Parameters

\NicholasCreativeMedia\FedExPHP\Structs\RequestedPackageLineItem $package: The package to adjust.

array $items: An array of shipment items.

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

Return value

\NicholasCreativeMedia\FedExPHP\Structs\RequestedPackageLineItem The adjusted Package.

Overrides FedExPluginInterface::adjustPackage

1 call to FedExPluginBase::adjustPackage()
DryIcePlugin::adjustPackage in modules/dry_ice/src/Plugin/Commerce/FedEx/DryIcePlugin.php
Adjust a package based on the items, shipment and profile.
2 methods override FedExPluginBase::adjustPackage()
DangerousGoodsPlugin::adjustPackage in modules/dangerous/src/Plugin/Commerce/FedEx/DangerousGoodsPlugin.php
Adjust a package based on the items, shipment and profile.
DryIcePlugin::adjustPackage in modules/dry_ice/src/Plugin/Commerce/FedEx/DryIcePlugin.php
Adjust a package based on the items, shipment and profile.

File

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

Class

FedExPluginBase
Class FedExPluginBase base class for the fedex plugins.

Namespace

Drupal\commerce_fedex\Plugin\Commerce\FedEx

Code

public function adjustPackage(RequestedPackageLineItem $package, array $items, ShipmentInterface $shipment) {
  return $package;
}