You are here

public function OrderPaidSubscriber::__construct in Commerce Invoice 8.2

Constructs a new OrderPaidSubscriber object.

Parameters

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

File

src/EventSubscriber/OrderPaidSubscriber.php, line 24

Class

OrderPaidSubscriber

Namespace

Drupal\commerce_invoice\EventSubscriber

Code

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