public static function Order::getCurrentUserId in Ubercart 8.4
Default value callback for 'uid' base field definition.
Return value
array An array of default values.
See also
::baseFieldDefinitions()
File
- uc_order/
src/ Entity/ Order.php, line 657
Class
- Order
- Defines the order entity class.
Namespace
Drupal\uc_order\EntityCode
public static function getCurrentUserId() {
return [
\Drupal::currentUser()
->id(),
];
}