You are here

public function NotifyGrantEvent::__construct in Ubercart 8.4

Same name in this branch
  1. 8.4 uc_file/src/Event/NotifyGrantEvent.php \Drupal\uc_file\Event\NotifyGrantEvent::__construct()
  2. 8.4 uc_role/src/Event/NotifyGrantEvent.php \Drupal\uc_role\Event\NotifyGrantEvent::__construct()

Constructs the object.

Parameters

\Drupal\uc_order\OrderInterface $order: The order object.

array $expiration: The expiration.

File

uc_role/src/Event/NotifyGrantEvent.php, line 37

Class

NotifyGrantEvent
Event that is fired when a user role is granted.

Namespace

Drupal\uc_role\Event

Code

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