You are here

public function OrderType::shouldSendReceipt in Commerce Core 8.2

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

Return value

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

Overrides OrderTypeInterface::shouldSendReceipt

File

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

Class

OrderType
Defines the order type entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function shouldSendReceipt() {
  return $this->sendReceipt;
}