You are here

public function ShipmentWeight::defaultConfiguration in Commerce Shipping 8.2

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConditionBase::defaultConfiguration

File

src/Plugin/Commerce/Condition/ShipmentWeight.php, line 26

Class

ShipmentWeight
Provides the weight condition for shipments.

Namespace

Drupal\commerce_shipping\Plugin\Commerce\Condition

Code

public function defaultConfiguration() {
  return [
    'operator' => '>',
    'weight' => NULL,
  ] + parent::defaultConfiguration();
}