interface OrderReceiptMailInterface in Commerce Core 8.2
Hierarchy
- interface \Drupal\commerce_order\Mail\OrderReceiptMailInterface
Expanded class hierarchy of OrderReceiptMailInterface
All classes that implement OrderReceiptMailInterface
2 files declare their use of OrderReceiptMailInterface
- OrderReceiptResendForm.php in modules/
order/ src/ Form/ OrderReceiptResendForm.php - OrderReceiptSubscriber.php in modules/
order/ src/ EventSubscriber/ OrderReceiptSubscriber.php
File
- modules/
order/ src/ Mail/ OrderReceiptMailInterface.php, line 7
Namespace
Drupal\commerce_order\MailView source
interface OrderReceiptMailInterface {
/**
* Sends the order receipt email.
*
* @param \Drupal\commerce_order\Entity\OrderInterface $order
* The order.
* @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(OrderInterface $order, $to = NULL, $bcc = NULL);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OrderReceiptMailInterface:: |
public | function | Sends the order receipt email. | 1 |