How can I get the user ID from an order?
use Drupal\uc_order\Entity\Order;
$order_load = Order::load($order_id); //Load Order
$ownerinfo = $order_load-&gt;getOwner(); //Fetch Owner Info
$ownerID = $order_load-&gt;getOwnerId(); //Fetch Owner ID
$ownerEmail = $order_load-&gt;getEmail(); //Fetch owner email