You are here

public function CustomerProfileEvent::__construct in Commerce Core 8.2

Constructs a new CustomerProfileEvent.

Parameters

\Drupal\profile\Entity\ProfileInterface $customer_profile: The initially selected customer profile.

\Drupal\commerce_order\Entity\OrderItemInterface $order_item: The order item.

File

modules/tax/src/Event/CustomerProfileEvent.php, line 38

Class

CustomerProfileEvent
Defines the customer profile event.

Namespace

Drupal\commerce_tax\Event

Code

public function __construct(ProfileInterface $customer_profile = NULL, OrderItemInterface $order_item) {
  $this->customerProfile = $customer_profile;
  $this->orderItem = $order_item;
}