You are here

public function OrderReceiptMail::__construct in Commerce Core 8.2

Constructs a new OrderReceiptMail object.

Parameters

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

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

\Drupal\commerce_order\OrderTotalSummaryInterface $order_total_summary: The order total summary.

File

modules/order/src/Mail/OrderReceiptMail.php, line 46

Class

OrderReceiptMail

Namespace

Drupal\commerce_order\Mail

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, MailHandlerInterface $mail_handler, OrderTotalSummaryInterface $order_total_summary) {
  $this->mailHandler = $mail_handler;
  $this->orderTotalSummary = $order_total_summary;
  $this->profileViewBuilder = $entity_type_manager
    ->getViewBuilder('profile');
}