public function BundleItemOrderItem::getPurchasedEntityId in Commerce Product Bundle 8
Gets the purchased entity ID.
Return value
int The purchased entity ID.
Overrides BundleItemOrderItemInterface::getPurchasedEntityId
File
- src/
Entity/ BundleItemOrderItem.php, line 81
Class
- BundleItemOrderItem
- Defines the Bundle Item Order Item entity.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function getPurchasedEntityId() {
return $this
->get('purchased_entity')->target_id;
}