Default value callback for 'uid' base field definition.
array An array of default values.
::baseFieldDefinitions()
public static function getCurrentUserId() { return array( \Drupal::currentUser() ->id(), ); }