You are here

class NotifyRenewEvent in Ubercart 8.4

Event that is fired when a user role is renewed.

Hierarchy

  • class \Drupal\uc_role\Event\NotifyRenewEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of NotifyRenewEvent

1 file declares its use of NotifyRenewEvent
RenewRole.php in uc_role/src/Plugin/RulesAction/RenewRole.php

File

uc_role/src/Event/NotifyRenewEvent.php, line 11

Namespace

Drupal\uc_role\Event
View source
class NotifyRenewEvent extends Event {
  const EVENT_NAME = 'uc_role_notify_renew';

  /**
   * 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
NotifyRenewEvent::$expiration public property The expiration.
NotifyRenewEvent::$order public property The order.
NotifyRenewEvent::EVENT_NAME constant
NotifyRenewEvent::__construct public function Constructs the object.