You are here

public function BeforePackEvent::__construct in Commerce FedEx 8

Constructs a new BeforePackEvent object.

Parameters

array $order_items: The order items array.

\Drupal\commerce_order\Entity\OrderInterface $order: The order being packed.

\Drupal\profile\Entity\ProfileInterface $shipping_profile: The selected shipping profile.

File

src/Event/BeforePackEvent.php, line 49

Class

BeforePackEvent
Defines the before pack event for FedEx.

Namespace

Drupal\commerce_fedex\Event

Code

public function __construct(array $order_items, OrderInterface $order, ProfileInterface $shipping_profile) {
  $this->orderItems = $order_items;
  $this->order = $order;
  $this->shippingProfile = $shipping_profile;
}