You are here

public function Order::setEmail in Commerce Core 8.2

Sets the order email.

Parameters

string $mail: The order email.

Return value

$this

Overrides OrderInterface::setEmail

1 call to Order::setEmail()
Order::preSave in modules/order/src/Entity/Order.php
Acts on an entity before the presave hook is invoked.

File

modules/order/src/Entity/Order.php, line 205

Class

Order
Defines the order entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function setEmail($mail) {
  $this
    ->set('mail', $mail);
  return $this;
}