public function BundleItemInterface::getProduct in Commerce Product Bundle 8
Get the referenced product.
Return value
null|\Drupal\commerce_product\Entity\ProductInterface The referenced commerce product or null if no product is referenced.
1 method overrides BundleItemInterface::getProduct()
- ProductBundleItem::getProduct in src/
Entity/ ProductBundleItem.php - Get the referenced product.
File
- src/
Entity/ BundleItemInterface.php, line 163
Class
- BundleItemInterface
- Provides an interface for defining product bundle item entities.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function getProduct();