You are here

public function BundleItemInterface::hasProduct in Commerce Product Bundle 8

Gets whether the bundle item has a product set or not.

Return value

bool TRUE if the bundle item contains a product reference. FALSE otherwise.

1 method overrides BundleItemInterface::hasProduct()
ProductBundleItem::hasProduct in src/Entity/ProductBundleItem.php
Gets whether the bundle item has a product set or not.

File

src/Entity/BundleItemInterface.php, line 154

Class

BundleItemInterface
Provides an interface for defining product bundle item entities.

Namespace

Drupal\commerce_product_bundle\Entity

Code

public function hasProduct();