public function InvoiceInterface::getCustomer in Commerce Invoice 8.2
Gets the customer user.
Return value
\Drupal\user\UserInterface The customer user entity. If the invoice is anonymous (customer unspecified or deleted), an anonymous user will be returned. Use $customer->isAnonymous() to check.
1 method overrides InvoiceInterface::getCustomer()
- Invoice::getCustomer in src/
Entity/ Invoice.php - Gets the customer user.
File
- src/
Entity/ InvoiceInterface.php, line 45
Class
- InvoiceInterface
- Defines the interface for invoices.
Namespace
Drupal\commerce_invoice\EntityCode
public function getCustomer();