public function InvoiceConfirmationSubscriber::__construct in Commerce Invoice 8.2
Constructs a new InvoiceConfirmationSubscriber object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\commerce_invoice\Mail\InvoiceConfirmationMailInterface $invoice_confirmation_mail: The mail handler.
File
- src/
EventSubscriber/ InvoiceConfirmationSubscriber.php, line 45
Class
- InvoiceConfirmationSubscriber
- Sends a confirmation email when an invoice is generated.
Namespace
Drupal\commerce_invoice\EventSubscriberCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, InvoiceConfirmationMailInterface $invoice_confirmation_mail) {
$this->entityTypeManager = $entity_type_manager;
$this->invoiceConfirmationMail = $invoice_confirmation_mail;
}