You are here

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\Entity

Code

public static function getCurrentUserId() {
  return [
    \Drupal::currentUser()
      ->id(),
  ];
}