You are here

public function ShipmentWeightMultipleConds::defaultConfiguration in Commerce Shipping Weight Tariff 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Commerce/Condition/ShipmentWeightMultipleConds.php \Drupal\commerce_shipping_weight_tariff\Plugin\Commerce\Condition\ShipmentWeightMultipleConds::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConditionBase::defaultConfiguration

File

src/Plugin/Commerce/Condition/ShipmentWeightMultipleConds.php, line 61

Class

ShipmentWeightMultipleConds
Provides the multiple weight condition for shipments.

Namespace

Drupal\commerce_shipping_weight_tariff\Plugin\Commerce\Condition

Code

public function defaultConfiguration() {
  return [
    'condition_1' => [
      'price' => NULL,
      'operator' => '<',
      'weight' => NULL,
      'enabled' => TRUE,
    ],
    'condition_2' => [
      'price' => NULL,
      'operator' => '<',
      'weight' => NULL,
      'enabled' => TRUE,
    ],
    'condition_3' => [
      'price' => NULL,
      'operator' => '<',
      'weight' => NULL,
      'enabled' => TRUE,
    ],
    'condition_4' => [
      'price' => NULL,
      'operator' => '>',
      'weight' => NULL,
      'enabled' => TRUE,
    ],
    'condition_5' => [
      'price' => NULL,
      'operator' => '>',
      'weight' => NULL,
      'enabled' => FALSE,
    ],
    'condition_6' => [
      'price' => NULL,
      'operator' => '>',
      'weight' => NULL,
      'enabled' => FALSE,
    ],
    'condition_7' => [
      'price' => NULL,
      'operator' => '>',
      'weight' => NULL,
      'enabled' => FALSE,
    ],
    'condition_8' => [
      'price' => NULL,
      'operator' => '>',
      'weight' => NULL,
      'enabled' => FALSE,
    ],
    'condition_9' => [
      'price' => NULL,
      'operator' => '>',
      'weight' => NULL,
      'enabled' => FALSE,
    ],
    'condition_10' => [
      'price' => NULL,
      'operator' => '>',
      'weight' => NULL,
      'enabled' => FALSE,
    ],
  ] + parent::defaultConfiguration();
}