public function ShipmentPromotionOfferBase::__construct in Commerce Shipping 8.2
Constructs a new ShipmentPromotionOfferBase 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\commerce_price\RounderInterface $rounder: The rounder.
\Drupal\commerce\EntityUuidMapperInterface $entity_uuid_mapper: The entity UUID mapper.
\Drupal\commerce_shipping\ShippingOrderManagerInterface $shipping_order_manager: The shipping order manager.
Overrides PromotionOfferBase::__construct
File
- src/
Plugin/ Commerce/ PromotionOffer/ ShipmentPromotionOfferBase.php, line 52
Class
- ShipmentPromotionOfferBase
- Provides the base class for shipment offers.
Namespace
Drupal\commerce_shipping\Plugin\Commerce\PromotionOfferCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RounderInterface $rounder, EntityUuidMapperInterface $entity_uuid_mapper, ShippingOrderManagerInterface $shipping_order_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $rounder);
$this->entityUuidMapper = $entity_uuid_mapper;
$this->shippingOrderManager = $shipping_order_manager;
}