You are here

public function CheckoutOrderRequestEvent::__construct in Commerce PayPal 8

Constructs a new CheckoutOrderRequestEvent object.

Parameters

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

array $request_body: The API request body.

File

src/Event/CheckoutOrderRequestEvent.php, line 37

Class

CheckoutOrderRequestEvent
Defines the Checkout order request event.

Namespace

Drupal\commerce_paypal\Event

Code

public function __construct(OrderInterface $order, array $request_body) {
  $this->order = $order;
  $this->requestBody = $request_body;
}