You are here

interface ShipmentConfirmationMailInterface in Commerce Shipping 8.2

Hierarchy

Expanded class hierarchy of ShipmentConfirmationMailInterface

All classes that implement ShipmentConfirmationMailInterface

2 files declare their use of ShipmentConfirmationMailInterface
ShipmentConfirmationResendForm.php in src/Form/ShipmentConfirmationResendForm.php
ShipmentSubscriber.php in src/EventSubscriber/ShipmentSubscriber.php

File

src/Mail/ShipmentConfirmationMailInterface.php, line 7

Namespace

Drupal\commerce_shipping\Mail
View source
interface ShipmentConfirmationMailInterface {

  /**
   * Sends the shipment confirmation email.
   *
   * @param \Drupal\commerce_shipping\Entity\ShipmentInterface $shipment
   *   The shipment.
   * @param string $to
   *   The address the email will be sent to. Must comply with RFC 2822.
   *   Defaults to the order email.
   * @param string $bcc
   *   The BCC address or addresses (separated by a comma).
   *
   * @return bool
   *   TRUE if the email was sent successfully, FALSE otherwise.
   */
  public function send(ShipmentInterface $shipment, $to = NULL, $bcc = NULL);

}

Members

Namesort descending Modifiers Type Description Overrides
ShipmentConfirmationMailInterface::send public function Sends the shipment confirmation email. 1