public function CartEntityAddEvent::getEntity in Commerce Core 8.2
Gets the added entity.
Return value
\Drupal\commerce\PurchasableEntityInterface The added entity.
File
- modules/
cart/ src/ Event/ CartEntityAddEvent.php, line 80
Class
- CartEntityAddEvent
- Defines the cart entity add event.
Namespace
Drupal\commerce_cart\EventCode
public function getEntity() {
return $this->entity;
}