You are here

public function ShippingInformation::__construct in Commerce Shipping 8.2

Constructs a new ShippingInformation 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\commerce_checkout\Plugin\Commerce\CheckoutFlow\CheckoutFlowInterface $checkout_flow: The parent checkout flow.

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

\Drupal\Core\Entity\EntityTypeBundleInfo $entity_type_bundle_info: The entity type bundle info.

\Drupal\commerce\InlineFormManager $inline_form_manager: The inline form manager.

\Drupal\commerce_shipping\PackerManagerInterface $packer_manager: The packer manager.

\Drupal\commerce_shipping\OrderShipmentSummaryInterface $order_shipment_summary: The order shipment summary.

Overrides CheckoutPaneBase::__construct

File

src/Plugin/Commerce/CheckoutPane/ShippingInformation.php, line 88

Class

ShippingInformation
Provides the shipping information pane.

Namespace

Drupal\commerce_shipping\Plugin\Commerce\CheckoutPane

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CheckoutFlowInterface $checkout_flow, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfo $entity_type_bundle_info, InlineFormManager $inline_form_manager, PackerManagerInterface $packer_manager, OrderShipmentSummaryInterface $order_shipment_summary) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $checkout_flow, $entity_type_manager);
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->inlineFormManager = $inline_form_manager;
  $this->packerManager = $packer_manager;
  $this->orderShipmentSummary = $order_shipment_summary;
}