You are here

public function OrderInterface::getCustomer in Commerce Core 8.2

Gets the customer user.

Return value

\Drupal\user\UserInterface The customer user entity. If the order is anonymous (customer unspecified or deleted), an anonymous user will be returned. Use $customer->isAnonymous() to check.

1 method overrides OrderInterface::getCustomer()
Order::getCustomer in modules/order/src/Entity/Order.php
Gets the customer user.

File

modules/order/src/Entity/OrderInterface.php, line 67

Class

OrderInterface
Defines the interface for orders.

Namespace

Drupal\commerce_order\Entity

Code

public function getCustomer();