public function USPSBase::defaultConfiguration in Commerce USPS 8
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ShippingMethodBase::defaultConfiguration
File
- src/
Plugin/ Commerce/ ShippingMethod/ USPSBase.php, line 66
Class
Namespace
Drupal\commerce_usps\Plugin\Commerce\ShippingMethodCode
public function defaultConfiguration() {
return [
'api_information' => [
'user_id' => '',
'password' => '',
'mode' => 'test',
],
'rate_options' => [
'rate_class' => 'retail',
],
'options' => [
'tracking_url' => 'https://tools.usps.com/go/TrackConfirmAction?tLabels=[tracking_code]',
'log' => [],
],
] + parent::defaultConfiguration();
}