You are here

public function ProductBundleItem::getProductId in Commerce Product Bundle 8

Gets the bundle item's product id.

Return value

string|int The bundle item's product id.

Overrides BundleItemInterface::getProductId

File

src/Entity/ProductBundleItem.php, line 286

Class

ProductBundleItem
Defines the product bundle item entity.

Namespace

Drupal\commerce_product_bundle\Entity

Code

public function getProductId() {
  return $this
    ->getProduct()
    ->id();
}