You are here

public function OrderType::setSendReceipt in Commerce Core 8.2

Sets whether to email the customer a receipt when an order is placed.

Parameters

bool $send_receipt: TRUE if the receipt email should be sent, FALSE otherwise.

Return value

$this

Overrides OrderTypeInterface::setSendReceipt

File

modules/order/src/Entity/OrderType.php, line 191

Class

OrderType
Defines the order type entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function setSendReceipt($send_receipt) {
  $this->sendReceipt = (bool) $send_receipt;
  return $this;
}