You are here

public function InvoiceConfirmationMail::__construct in Commerce Invoice 8.2

Constructs a new InvoiceConfirmationMail object.

Parameters

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

\Drupal\commerce\MailHandlerInterface $mail_handler: The mail handler.

\Drupal\commerce_invoice\InvoiceTotalSummaryInterface $invoice_total_summary: The invoice total summary.

\Drupal\commerce_invoice\InvoiceFileManagerInterface $invoice_file_manager: The invoice file manager.

File

src/Mail/InvoiceConfirmationMail.php, line 56

Class

InvoiceConfirmationMail

Namespace

Drupal\commerce_invoice\Mail

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, MailHandlerInterface $mail_handler, InvoiceTotalSummaryInterface $invoice_total_summary, InvoiceFileManagerInterface $invoice_file_manager) {
  $this->mailHandler = $mail_handler;
  $this->invoiceTotalSummary = $invoice_total_summary;
  $this->profileViewBuilder = $entity_type_manager
    ->getViewBuilder('profile');
  $this->invoiceFileManager = $invoice_file_manager;
}