public function BundleInterface::hasBundleItem in Commerce Product Bundle 8
Checks whether the bundle has a given bundle item.
Parameters
\Drupal\commerce_product_bundle\Entity\BundleItemInterface $bundle_item: The bundle item to check for.
Return value
bool True if the given bundle item is referenced, false otherwise.
1 method overrides BundleInterface::hasBundleItem()
- ProductBundle::hasBundleItem in src/
Entity/ ProductBundle.php - Checks whether the bundle has a given bundle item.
File
- src/
Entity/ BundleInterface.php, line 151
Class
- BundleInterface
- Provides an interface for defining product bundle entities.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function hasBundleItem(BundleItemInterface $bundle_item);