public function CartEmptyEvent::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/ CartEmptyEvent.php, line 48
Class
- CartEmptyEvent
- Defines the cart empty event.
Namespace
Drupal\commerce_cart\EventCode
public function getCart() {
return $this->cart;
}