You are here

public function CartEntityAddEvent::getCart in Commerce Core 8.2

Gets the cart order.

Return value

\Drupal\commerce_order\Entity\OrderInterface The cart order.

File

modules/cart/src/Event/CartEntityAddEvent.php, line 70

Class

CartEntityAddEvent
Defines the cart entity add event.

Namespace

Drupal\commerce_cart\Event

Code

public function getCart() {
  return $this->cart;
}