You are here

public function ProductBundle::getBundleItems in Commerce Product Bundle 8

@inheritdoc

Overrides BundleInterface::getBundleItems

File

src/Entity/ProductBundle.php, line 207

Class

ProductBundle
Defines the product bundle entity.

Namespace

Drupal\commerce_product_bundle\Entity

Code

public function getBundleItems() {
  $bundle_items = $this
    ->get('bundle_items')
    ->referencedEntities();
  return $this
    ->ensureTranslations($bundle_items);
}