You are here

class NotifyGrantEvent in Ubercart 8.4

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

Event that is fired when a file download is granted.

Hierarchy

  • class \Drupal\uc_file\Event\NotifyGrantEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of NotifyGrantEvent

1 file declares its use of NotifyGrantEvent
RenewFile.php in uc_file/src/Plugin/RulesAction/RenewFile.php

File

uc_file/src/Event/NotifyGrantEvent.php, line 11

Namespace

Drupal\uc_file\Event
View source
class NotifyGrantEvent extends Event {
  const EVENT_NAME = 'uc_file_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

Namesort descending Modifiers Type Description Overrides
NotifyGrantEvent::$expiration public property The expiration.
NotifyGrantEvent::$order public property The order.
NotifyGrantEvent::EVENT_NAME constant
NotifyGrantEvent::__construct public function Constructs the object.