You are here

public function Shipping::__construct in Commerce Shipping 8.2

Constructs a new Shipping object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\commerce\EntityUuidMapperInterface $entity_uuid_mapper: The entity UUID mapper.

\Drupal\commerce_price\RounderInterface $rounder: The rounder.

\Drupal\commerce_shipping\ShippingOrderManagerInterface $shipping_order_manager: The shipping order manager.

Overrides TaxTypeBase::__construct

File

src/Plugin/Commerce/TaxType/Shipping.php, line 71

Class

Shipping
Provides the Shipping tax type.

Namespace

Drupal\commerce_shipping\Plugin\Commerce\TaxType

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $event_dispatcher, EntityUuidMapperInterface $entity_uuid_mapper, RounderInterface $rounder, ShippingOrderManagerInterface $shipping_order_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $event_dispatcher);
  $this->entityUuidMapper = $entity_uuid_mapper;
  $this->rounder = $rounder;
  $this->shippingOrderManager = $shipping_order_manager;
}