public function Invoice::setCustomerId in Commerce Invoice 8.2
Sets the customer user ID.
Parameters
int $uid: The customer user ID.
Return value
$this
Overrides InvoiceInterface::setCustomerId
1 call to Invoice::setCustomerId()
- Invoice::preSave in src/
Entity/ Invoice.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ Invoice.php, line 177
Class
- Invoice
- Defines the invoice entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public function setCustomerId($uid) {
$this
->set('uid', $uid);
return $this;
}