public function InvoiceType::setSendConfirmation in Commerce Invoice 8.2
Sets whether to email the customer a confirmation when an invoice is generated.
Parameters
bool $send_confirmation: TRUE if the confirmation email should be sent, FALSE otherwise.
Return value
$this
Overrides InvoiceTypeInterface::setSendConfirmation
File
- src/
Entity/ InvoiceType.php, line 251
Class
- InvoiceType
- Defines the invoice type entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public function setSendConfirmation($send_confirmation) {
$this->sendConfirmation = (bool) $send_confirmation;
return $this;
}