You are here

public function OrderReceiptResendForm::__construct in Commerce Core 8.2

Constructs a new OrderReceiptResendForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

\Drupal\commerce_order\Mail\OrderReceiptMailInterface $order_receipt_mail: The order receipt mail service.

Overrides ContentEntityForm::__construct

File

modules/order/src/Form/OrderReceiptResendForm.php, line 37

Class

OrderReceiptResendForm
Provides a confirmation form for resending order receipts.

Namespace

Drupal\commerce_order\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, OrderReceiptMailInterface $order_receipt_mail) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->orderReceiptMail = $order_receipt_mail;
}