You are here

class CheckoutStartEvent in Ubercart 8.4

Event that is fired when a customer starts checkout.

Hierarchy

  • class \Drupal\uc_cart\Event\CheckoutStartEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of CheckoutStartEvent

1 file declares its use of CheckoutStartEvent
CheckoutController.php in uc_cart/src/Controller/CheckoutController.php

File

uc_cart/src/Event/CheckoutStartEvent.php, line 11

Namespace

Drupal\uc_cart\Event
View source
class CheckoutStartEvent extends Event {
  const EVENT_NAME = 'uc_cart_checkout_start';

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

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

}

Members

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