public function Context::getCustomer in Commerce Core 8.2
Gets the customer.
Return value
\Drupal\Core\Session\AccountInterface The customer.
File
- src/
Context.php, line 71
Class
- Context
- Contains known global information (customer, store, time).
Namespace
Drupal\commerceCode
public function getCustomer() : AccountInterface {
return $this->customer;
}