You are here

public function OrderCloneEvent::__construct in Commerce Repeat Order 8.2

Constructs a node insertion demo event object.

Parameters

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

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

File

src/Event/OrderCloneEvent.php, line 36

Class

OrderCloneEvent
Wraps an order clone event for event listeners.

Namespace

Drupal\commerce_repeat_order\Event

Code

public function __construct(OrderInterface $original, OrderInterface $new) {
  $this->original = $original;
  $this->new = $new;
}