You are here

public function DryIcePlugin::defaultConfiguration in Commerce FedEx 8

Provide the plugin default configuration.

Return value

array The default configuration

Overrides FedExPluginBase::defaultConfiguration

File

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

Class

DryIcePlugin
Provides the Fedex Dry Ice Service.

Namespace

Drupal\commerce_fedex_dry_ice\Plugin\Commerce\FedEx

Code

public function defaultConfiguration() {
  $config = [
    'domestic' => [
      'package_type' => 'custom_box',
      'weight' => [
        'number' => 0,
        'unit' => WeightUnit::KILOGRAM,
      ],
    ],
    'intl' => [
      'package_type' => 'custom_box',
      'weight' => [
        'number' => 0,
        'unit' => WeightUnit::KILOGRAM,
      ],
    ],
  ] + parent::defaultConfiguration();
  return $config;
}