You are here

public function BundleInterface::setBundleItems in Commerce Product Bundle 8

Sets the bundle items of that bundle.

Parameters

\Drupal\commerce_product_bundle\Entity\BundleItemInterface[] $bundle_items: The bundle items to add.

Return value

\Drupal\commerce_product_bundle\Entity\BundleInterface The called bundle entity.

1 method overrides BundleInterface::setBundleItems()
ProductBundle::setBundleItems in src/Entity/ProductBundle.php
@inheritdoc

File

src/Entity/BundleInterface.php, line 111

Class

BundleInterface
Provides an interface for defining product bundle entities.

Namespace

Drupal\commerce_product_bundle\Entity

Code

public function setBundleItems(array $bundle_items);