You are here

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\Entity

Code

public function setSendConfirmation($send_confirmation) {
  $this->sendConfirmation = (bool) $send_confirmation;
  return $this;
}