class NotifyGrantEvent in Ubercart 8.4
Same name in this branch
- 8.4 uc_file/src/Event/NotifyGrantEvent.php \Drupal\uc_file\Event\NotifyGrantEvent
 - 8.4 uc_role/src/Event/NotifyGrantEvent.php \Drupal\uc_role\Event\NotifyGrantEvent
 
Event that is fired when a user role is granted.
Hierarchy
- class \Drupal\uc_role\Event\NotifyGrantEvent extends \Symfony\Component\EventDispatcher\Event
 
Expanded class hierarchy of NotifyGrantEvent
1 file declares its use of NotifyGrantEvent
- RenewRole.php in uc_role/
src/ Plugin/ RulesAction/ RenewRole.php  
File
- uc_role/
src/ Event/ NotifyGrantEvent.php, line 11  
Namespace
Drupal\uc_role\EventView source
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;
  }
}Members
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            NotifyGrantEvent:: | 
                  public | property | The expiration. | |
| 
            NotifyGrantEvent:: | 
                  public | property | The order. | |
| 
            NotifyGrantEvent:: | 
                  constant | |||
| 
            NotifyGrantEvent:: | 
                  public | function | Constructs the object. |