You are here

public function Order::getEmail in Commerce Core 8.2

Gets the order email.

Return value

string The order email.

Overrides OrderInterface::getEmail

1 call to Order::getEmail()
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 198

Class

Order
Defines the order entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function getEmail() {
  return $this
    ->get('mail')->value;
}