You are here

public function BundleItemOrderItemSubscriber::__construct in Commerce Product Bundle 8

BundleItemOrderItemSubscriber constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager,.

File

src/EventSubscriber/BundleItemOrderItemSubscriber.php, line 20

Class

BundleItemOrderItemSubscriber
Deletes the bundle items order items if an order item gets deleted.

Namespace

Drupal\commerce_product_bundle\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->bundleItemOrderItemStorage = $entity_type_manager
    ->getStorage('cpb_order_item');
}