NotifyGrantEvent.php in Ubercart 8.4
Same filename in this branch
Namespace
Drupal\uc_role\EventFile
uc_role/src/Event/NotifyGrantEvent.phpView source
<?php
namespace Drupal\uc_role\Event;
use Drupal\uc_order\OrderInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Event that is fired when a user role is granted.
*/
class NotifyGrantEvent extends Event {
const EVENT_NAME = 'uc_role_notify_grant';
/**
* The order.
*
* @var \Drupal\uc_order\OrderInterface
*/
public $order;
/**
* The expiration.
*
* @var array
*/
public $expiration;
/**
* Constructs the object.
*
* @param \Drupal\uc_order\OrderInterface $order
* The order object.
* @param array $expiration
* The expiration.
*/
public function __construct(OrderInterface $order, array $expiration) {
$this->order = $order;
$this->expiration = $expiration;
}
}
Classes
Name | Description |
---|---|
NotifyGrantEvent | Event that is fired when a user role is granted. |