public function BundleInterface::addBundleItem in Commerce Product Bundle 8
Adds a bundle item to the bundle.
Parameters
\Drupal\commerce_product_bundle\Entity\BundleItemInterface $bundle_item: The bundle item to add.
Return value
\Drupal\commerce_product_bundle\Entity\BundleInterface[] The called bundle entity.
1 method overrides BundleInterface::addBundleItem()
- ProductBundle::addBundleItem in src/
Entity/ ProductBundle.php - Adds a bundle item to the bundle.
File
- src/
Entity/ BundleInterface.php, line 122
Class
- BundleInterface
- Provides an interface for defining product bundle entities.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function addBundleItem(BundleItemInterface $bundle_item);