public function ShipmentSubscriber::__construct in Commerce Shipping 8.2
Constructs a new ShipmentSubscriber object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\commerce_shipping\Mail\ShipmentConfirmationMailInterface $shipment_confirmation_mail: The shipment confirmation mail service.
File
- src/
EventSubscriber/ ShipmentSubscriber.php, line 44
Class
Namespace
Drupal\commerce_shipping\EventSubscriberCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, ShipmentConfirmationMailInterface $shipment_confirmation_mail) {
$this->entityTypeManager = $entity_type_manager;
$this->shipmentConfirmationMail = $shipment_confirmation_mail;
}