You are here

class PaymentEnteredEvent in Ubercart 8.4

Event that is fired when payment is entered for an order.

Hierarchy

  • class \Drupal\uc_payment\Event\PaymentEnteredEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of PaymentEnteredEvent

1 file declares its use of PaymentEnteredEvent
uc_payment.module in payment/uc_payment/uc_payment.module
Defines the payment API that lets payment modules interact with Ubercart.

File

payment/uc_payment/src/Event/PaymentEnteredEvent.php, line 12

Namespace

Drupal\uc_payment\Event
View source
class PaymentEnteredEvent extends Event {
  const EVENT_NAME = 'uc_payment_entered';

  /**
   * The order.
   *
   * @var \Drupal\uc_order\OrderInterface
   */
  public $order;

  /**
   * The user account.
   *
   * @var \Drupal\Core\Session\AccountInterface
   */
  public $account;

  /**
   * Constructs the object.
   *
   * @param \Drupal\uc_order\OrderInterface $order
   *   The order object.
   * @param \Drupal\Core\Session\AccountInterface $account
   *   The user account.
   */
  public function __construct(OrderInterface $order, AccountInterface $account) {
    $this->order = $order;
    $this->account = $account;
  }

}

Members

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