You are here

public function ShippingByWeight::defaultConfiguration in Commerce Shipping Weight Tariff 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Commerce/ShippingMethod/ShippingByWeight.php \Drupal\commerce_shipping_weight_tariff\Plugin\Commerce\ShippingMethod\ShippingByWeight::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ShippingMethodBase::defaultConfiguration

File

src/Plugin/Commerce/ShippingMethod/ShippingByWeight.php, line 67

Class

ShippingByWeight
Provides the FlatRatePerItem shipping method.

Namespace

Drupal\commerce_shipping_weight_tariff\Plugin\Commerce\ShippingMethod

Code

public function defaultConfiguration() {
  return [
    'rate_label' => '',
    'base_rate_amount' => '',
    'services' => [
      'default',
    ],
  ] + parent::defaultConfiguration();
}