public function OrderInterface::getCustomerId in Commerce Core 8.2
Gets the customer user ID.
Return value
int The customer user ID ('0' if anonymous).
1 method overrides OrderInterface::getCustomerId()
- Order::getCustomerId in modules/
order/ src/ Entity/ Order.php - Gets the customer user ID.
File
- modules/
order/ src/ Entity/ OrderInterface.php, line 85
Class
- OrderInterface
- Defines the interface for orders.
Namespace
Drupal\commerce_order\EntityCode
public function getCustomerId();