You are here

public function DryIcePlugin::__construct in Commerce FedEx 8

Creates a new Dry Ice FedEx Plugin object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\commerce_shipping\PackageTypeManagerInterface $package_type_manager: The package type manager.

Overrides FedExPluginBase::__construct

File

modules/dry_ice/src/Plugin/Commerce/FedEx/DryIcePlugin.php, line 53

Class

DryIcePlugin
Provides the Fedex Dry Ice Service.

Namespace

Drupal\commerce_fedex_dry_ice\Plugin\Commerce\FedEx

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, PackageTypeManagerInterface $package_type_manager) {
  $this->packageTypeManager = $package_type_manager;
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this
    ->setConfiguration($configuration);
}