You are here

class OrderCommentAddedEvent in Ubercart 8.4

Event that is fired when an order comment is added.

Hierarchy

Expanded class hierarchy of OrderCommentAddedEvent

1 file declares its use of OrderCommentAddedEvent
uc_order.module in uc_order/uc_order.module
Handles all things concerning Ubercart orders.

File

uc_order/src/Event/OrderCommentAddedEvent.php, line 11

Namespace

Drupal\uc_order\Event
View source
class OrderCommentAddedEvent extends Event {
  const EVENT_NAME = 'uc_order_comment_added';

  /**
   * 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