You are here

public function ShipmentType::setSendConfirmation in Commerce Shipping 8.2

Sets whether to email the customer a shipment confirmation.

Parameters

bool $send_confirmation: TRUE if the confirmation email should be sent, FALSE otherwise.

Return value

$this

Overrides ShipmentTypeInterface::setSendConfirmation

File

src/Entity/ShipmentType.php, line 104

Class

ShipmentType
Defines the shipment type entity class.

Namespace

Drupal\commerce_shipping\Entity

Code

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