You are here

public function ShipmentType::shouldSendConfirmation in Commerce Shipping 8.2

Gets whether to email the customer when a shipment is shipped.

Return value

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

Overrides ShipmentTypeInterface::shouldSendConfirmation

File

src/Entity/ShipmentType.php, line 97

Class

ShipmentType
Defines the shipment type entity class.

Namespace

Drupal\commerce_shipping\Entity

Code

public function shouldSendConfirmation() {
  return (bool) $this->sendConfirmation;
}