You are here

public function ShipmentWeightMultipleConds::__construct in Commerce Shipping Weight Tariff 8

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

Constructs a new ShipmentWeightMultipleConds object.

Parameters

array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\State\StateInterface $stateService: The Drupal State Service.

Overrides ConditionBase::__construct

File

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

Class

ShipmentWeightMultipleConds
Provides the multiple weight condition for shipments.

Namespace

Drupal\commerce_shipping_weight_tariff\Plugin\Commerce\Condition

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, StateInterface $stateService) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->stateService = $stateService;
}