interface FedExPluginInterface in Commerce FedEx 8
Defines the base interface for FedEx Service Plugins.
@package Drupal\commerce_fedex\Plugin\Commerce\FedEx
Hierarchy
- interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\commerce_fedex\Plugin\Commerce\FedEx\FedExPluginInterface
Expanded class hierarchy of FedExPluginInterface
All classes that implement FedExPluginInterface
File
- src/
Plugin/ Commerce/ FedEx/ FedExPluginInterface.php, line 16
Namespace
Drupal\commerce_fedex\Plugin\Commerce\FedExView source
interface FedExPluginInterface extends ConfigurableInterface, PluginFormInterface, PluginInspectionInterface {
/**
* Function adjustPackage.
*
* @param \NicholasCreativeMedia\FedExPHP\Structs\RequestedPackageLineItem $package
* The package to adjust.
* @param array $items
* An array of Shipment Items.
* @param \Drupal\commerce_shipping\Entity\ShipmentInterface $shipment
* The Shipment.
*
* @return \NicholasCreativeMedia\FedExPHP\Structs\RequestedPackageLineItem
* The Adjusted Package
*/
public function adjustPackage(RequestedPackageLineItem $package, array $items, ShipmentInterface $shipment);
/**
* Function splitPackage.
*
* @param array $shipment_items
* An Array of shipment items.
* @param \Drupal\commerce_shipping\Entity\ShipmentInterface $shipment
* The Shipment.
*
* @return array
* An array of arrays of shipment items.
*/
public function splitPackage(array $shipment_items, ShipmentInterface $shipment);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
FedExPluginInterface:: |
public | function | Function adjustPackage. | 1 |
FedExPluginInterface:: |
public | function | Function splitPackage. | 1 |
PluginFormInterface:: |
public | function | Form constructor. | 36 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |