public function ProductBundleItem::getBundleId in Commerce Product Bundle 8
Gets the parent product bundle ID.
Return value
int The product bundle ID, or null.
Overrides BundleItemInterface::getBundleId
File
- src/
Entity/ ProductBundleItem.php, line 138
Class
- ProductBundleItem
- Defines the product bundle item entity.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function getBundleId() {
return $this
->get('bundle_id')->target_id;
}