You are here

public function ShipmentConfirmationResendForm::__construct in Commerce Shipping 8.2

Constructs a new ShipmentConfirmationResendForm 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_shipping\Mail\ShipmentConfirmationMailInterface $shipment_confirmation_mail: The shipment confirmation mail service.

Overrides ContentEntityForm::__construct

File

src/Form/ShipmentConfirmationResendForm.php, line 37

Class

ShipmentConfirmationResendForm
Provides a confirmation form for resending order shipment confirmations.

Namespace

Drupal\commerce_shipping\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, ShipmentConfirmationMailInterface $shipment_confirmation_mail) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->shipmentConfirmationMail = $shipment_confirmation_mail;
}