You are here

public function Order::setCustomerId in Commerce Core 8.2

Sets the customer user ID.

Parameters

int $uid: The customer user ID.

Return value

$this

Overrides OrderInterface::setCustomerId

1 call to Order::setCustomerId()
Order::preSave in modules/order/src/Entity/Order.php
Acts on an entity before the presave hook is invoked.

File

modules/order/src/Entity/Order.php, line 190

Class

Order
Defines the order entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function setCustomerId($uid) {
  $this
    ->set('uid', $uid);
  return $this;
}