You are here

public static function UcWishlist::getCurrentUserId in UC Wish List 8

Default value callback for 'uid' base field definition.

Return value

array An array of default values.

See also

::baseFieldDefinitions()

File

src/Entity/UcWishlist.php, line 223

Class

UcWishlist
Defines the user entity class.

Namespace

Drupal\uc_wishlist\Entity

Code

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