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
Namespace
Drupal\commerce_invoice\EventSubscriberCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->invoiceStorage = $entity_type_manager
->getStorage('commerce_invoice');
}